refactor: centralise recipe validation

This commit is contained in:
2021-09-06 00:45:13 +02:00
parent 691a2c7a50
commit a0625bf133
8 changed files with 14 additions and 12 deletions

View File

@ -23,7 +23,7 @@ var recipeLintCommand = &cli.Command{
Aliases: []string{"l"},
ArgsUsage: "<recipe>",
Action: func(c *cli.Context) error {
recipe := internal.ValidateRecipeArg(c)
recipe := internal.ValidateRecipe(c)
pattern := fmt.Sprintf("%s/%s/compose**yml", config.APPS_DIR, recipe)
composeFiles, err := filepath.Glob(pattern)