forked from toolshed/abra
		
	refactor: deal with err from ShowSubcommandHelp
This commit is contained in:
		| @ -46,8 +46,7 @@ var recipeVersionCommand = &cli.Command{ | ||||
| 	Action: func(c *cli.Context) error { | ||||
| 		recipe := c.Args().First() | ||||
| 		if recipe == "" { | ||||
| 			cli.ShowSubcommandHelp(c) | ||||
| 			return nil | ||||
| 			return cli.ShowSubcommandHelp(c) | ||||
| 		} | ||||
|  | ||||
| 		catalogue, err := catalogue.ReadAppsCatalogue() | ||||
| @ -82,8 +81,7 @@ var recipeCreateCommand = &cli.Command{ | ||||
| 	Action: func(c *cli.Context) error { | ||||
| 		recipe := c.Args().First() | ||||
| 		if recipe == "" { | ||||
| 			cli.ShowSubcommandHelp(c) | ||||
| 			return nil | ||||
| 			return cli.ShowSubcommandHelp(c) | ||||
| 		} | ||||
|  | ||||
| 		directory := path.Join(config.APPS_DIR, recipe) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user