From 3d100093dc23953917264e3c819d554090ba6a16 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Wed, 22 Dec 2021 01:36:17 +0100 Subject: [PATCH] refactor: readability --- cli/internal/recipe.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/internal/recipe.go b/cli/internal/recipe.go index 54112c0f..889bdc1d 100644 --- a/cli/internal/recipe.go +++ b/cli/internal/recipe.go @@ -17,16 +17,20 @@ func PromptBumpType(tagString string) error { minor: new features/bug fixes, backwards compatible patch: bug fixes, backwards compatible `) + var chosenBumpType string prompt := &survey.Select{ Message: fmt.Sprintf("select recipe version increment type"), Options: []string{"major", "minor", "patch"}, } + if err := survey.AskOne(prompt, &chosenBumpType); err != nil { return err } + SetBumpType(chosenBumpType) } + return nil }