From db10c7b849d9e4b2aef63b9fd5c9e72263717b51 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 9 Nov 2021 18:06:06 +0100 Subject: [PATCH] feat: run wizard mode on recipe upgrade [ci skip] --- cli/recipe/upgrade.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/recipe/upgrade.go b/cli/recipe/upgrade.go index aaf93e54..f3dcb91b 100644 --- a/cli/recipe/upgrade.go +++ b/cli/recipe/upgrade.go @@ -36,6 +36,11 @@ update the relevant compose file tags on the local file system. Some image tags cannot be parsed because they do not follow some sort of semver-like convention. In this case, all possible tags will be listed and it is up to the end-user to decide. + +You may invoke this command in "wizard" mode and be prompted for input: + + abra recipe upgrade + `, ArgsUsage: "", Flags: []cli.Flag{ @@ -44,7 +49,7 @@ is up to the end-user to decide. internal.MajorFlag, }, Action: func(c *cli.Context) error { - recipe := internal.ValidateRecipe(c) + recipe := internal.ValidateRecipeWithPrompt(c) bumpType := btoi(internal.Major)*4 + btoi(internal.Minor)*2 + btoi(internal.Patch) if bumpType != 0 {