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

This should help psql users, who expect `\q` command for the exit
This commit is contained in:
Aliaksandr Valialkin 2024-10-07 10:47:51 +02:00
parent 2593f32b63
commit 6c9e643ea8
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

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