Skip to content

Commit

Permalink
add default description
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbincmss committed Feb 7, 2021
1 parent 66c8503 commit 2a57399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cliutil/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func PromptForConfirmYes(format string, a ...interface{}) (bool, string) {
// PromptForConfirmNo accepts yes / no from console by user, default to Yes and only return true
// if the user input is No
func PromptForConfirmNo(format string, a ...interface{}) (bool, string) {
ans := Prompt(fmt.Sprintf(format, a...))
ans := Prompt(fmt.Sprintf(format, a...)+"(default=N)")
switch strings.TrimSpace(strings.ToLower(ans)) {
case "n", "no":
return true, ans
Expand Down

0 comments on commit 2a57399

Please sign in to comment.