New ๐ŸŒŠ wave for @helm

Commit 4696be17

4696be171076Merged

zhilyaev <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

command404 comeback

Details

Commit
4696be171076
Parent
e970a640ff72

cmd/helmwave/main.gomodifiedView file

@@ -39,9 +39,15 @@
3939 c.Flags = logSet.Flags()
4040
4141 c.Commands = commands
42+ c.CommandNotFound = command404
4243
4344 err := c.Run(os.Args)
4445 if err != nil {
4546 log.Fatal(err)
4647 }
4748 }
49+
50+func command404(c *cli.Context, s string) {
51+ log.Errorf("๐Ÿ‘ป Command %q not found", s)
52+ os.Exit(127)
53+}