Commit e3520289
e3520289d703Merged
Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified
Description
Update subcommand not found message
Details
- Commit
- e3520289d703
- Parent
- c48e745a7f78
pkg/helmwave/cli.gomodifiedView file
@@ -5,6 +5,7 @@
55
"github.com/urfave/cli/v2"66
"github.com/zhilyaev/helmwave/pkg/yml"77
"os"8+
"fmt"89
)910
1011
func (c *Config) InitApp(ctx *cli.Context) error {@@ -24,7 +25,7 @@
2425
func (c *Config) CliPlan(ctx *cli.Context) error {2526
// We do not want any non-existing subcommands2627
if ctx.Args().Present() {27-
return cli.Exit("Subcommand not found", 123)28+
return cli.Exit(fmt.Sprintf("Subcommand %s not found", ctx.Args().First()), 127)2829
}2930
3031
opts := &yml.SavePlanOptions{}