0
0
forked from toolshed/abra

refactor: deal with err from ShowSubcommandHelp

This commit is contained in:
2021-08-02 05:58:47 +01:00
parent bb1eb372ef
commit 9070806f8d
5 changed files with 9 additions and 11 deletions

View File

@ -14,8 +14,7 @@ var serverRemoveCommand = &cli.Command{
Action: func(c *cli.Context) error {
server := c.Args().First()
if server == "" {
cli.ShowSubcommandHelp(c)
return nil
return cli.ShowSubcommandHelp(c)
}
if err := client.DeleteContext(server); err != nil {
logrus.Fatal(err)