fix bug with default value of prompts.Select()

This commit is contained in:
Norwin 2022-09-03 10:06:14 +02:00
parent 013419bec8
commit 7493ee2ce7

View file

@ -135,7 +135,7 @@ func Select(prompt string, options []string, customVal, noneVal string) (string,
Message: prompt,
Options: makeSelectOpts(options, customVal, noneVal),
VimMode: true,
Default: noneVal,
Default: options[0],
}
if err := survey.AskOne(promptA, &selection); err != nil {
return "", err