Skip to content

Commit 98c9cac

Browse files
Add exit meta-command
1 parent 4ba1b16 commit 98c9cac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/aicli/cmd.go

+2
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ func (cmd *Cmd) handleMeta(line string) string {
229229
} else {
230230
return newMsg
231231
}
232+
case `\quit`, `\exit`:
233+
os.Exit(0)
232234
default:
233235
err = errors.Errorf("Unknown meta command '%s'", line)
234236
}

0 commit comments

Comments
 (0)