Add VIM-like quit force option. (#1859)

Signed-off-by: Audun Nes <audun.nes@gmail.com>

Signed-off-by: Audun Nes <audun.nes@gmail.com>
mine
Audun V. Nes 2022-11-16 07:06:55 +01:00 committed by GitHub
parent e2b21c0133
commit c353534855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ func (a *Aliases) loadDefaultAliases() {
a.Alias["np"] = "networking.k8s.io/v1/networkpolicies"
a.declare("help", "h", "?")
a.declare("quit", "q", "Q")
a.declare("quit", "q", "q!", "Q")
a.declare("aliases", "alias", "a")
a.declare("popeye", "pop")
a.declare("helm", "charts", "chart", "hm")

View File

@ -178,7 +178,7 @@ func (c *Command) specialCmd(cmd, path string) bool {
case "cow":
c.app.cowCmd(path)
return true
case "q", "Q", "quit":
case "q", "q!", "Q", "quit":
c.app.BailOut()
return true
case "?", "h", "help":