WIP: make "abra app new" callable by code
All checks were successful
continuous-integration/drone/push Build is passing

Part of coop-cloud/organising#212.
This commit is contained in:
2021-11-03 09:10:13 +01:00
parent f041083604
commit 7d8e2d9dd1
5 changed files with 308 additions and 282 deletions

View File

@ -54,7 +54,12 @@ func ValidateRecipeWithPrompt(c *cli.Context) recipe.Recipe {
}
}
if recipeName == "" {
if recipeName == "" && RecipeName != "" {
recipeName = RecipeName
logrus.Debugf("programmatically setting recipe name to %s", recipeName)
}
if recipeName == "" && RecipeName == "" {
ShowSubcommandHelpAndError(c, errors.New("no recipe provided"))
}