Skip to content

Commit bf9fa1d

Browse files
committed
use yes/no instead of true/false when prompting for a bool
1 parent da4055f commit bf9fa1d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ func askInt(question string, def int) int {
4646
}
4747

4848
func askBool(question string, def bool) bool {
49-
prompt := fmt.Sprintf("%s [%v]", question, def)
49+
defString := "yes"
50+
if !def {
51+
defString = "no"
52+
}
53+
54+
prompt := fmt.Sprintf("%s [%v]", question, defString)
5055
res := ask(prompt)
5156

5257
switch strings.ToLower(res) {

0 commit comments

Comments
 (0)