From 063d9c73bb63121283985f0a94c6070ade7aab85 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 7 Oct 2024 10:47:51 +0200 Subject: [PATCH] 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 6c9e643ea8685ae5c73726d3042476d66f45a0b5) --- app/vlogscli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vlogscli/main.go b/app/vlogscli/main.go index 2b48dbe260..39ad6408e3 100644 --- a/app/vlogscli/main.go +++ b/app/vlogscli/main.go @@ -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