app/vlogscli: add \q command for the exit from vlogcli

This should help psql users, who expect `\q` command for the exit

(cherry picked from commit 6c9e643ea8)
This commit is contained in:
Aliaksandr Valialkin 2024-10-07 10:47:51 +02:00 committed by hagen1778
parent 5ef6eebc03
commit 063d9c73bb
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640

View File

@ -198,7 +198,7 @@ func saveToHistory(filePath string, lines []string) error {
func isQuitCommand(s string) bool {
switch s {
case "q", "quit", "exit":
case "q", "quit", "exit", "\\q":
return true
default:
return false