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
parent
e2b21c0133
commit
c353534855
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in New Issue