Allow rc commands to control the exit code

This commit is contained in:
Kovid Goyal
2024-05-14 14:25:55 +05:30
parent f659342b48
commit 1a394d6a57
3 changed files with 14 additions and 0 deletions

View File

@@ -203,6 +203,7 @@ func shell_main(cmd *cli.Command, args []string) (int, error) {
if err != nil {
return 1, err
}
running_shell = true
formatter = markup.New(true)
fmt.Println("Welcome to the kitty shell!")
fmt.Println("Use", formatter.Green("help"), "for assistance or", formatter.Green("exit"), "to quit.")