Minor fixup and cleanups around the new prompt feature

This commit is contained in:
Ettore Di Giacinto
2020-11-23 18:20:30 +01:00
parent b349665ff2
commit db1b190fb5
3 changed files with 40 additions and 31 deletions

View File

@@ -43,7 +43,7 @@ func Ask() bool {
Info("Do you want to continue with this operation? [y/N]: ")
_, err := fmt.Scanln(&input)
if err != nil {
panic(err)
return false
}
input = strings.ToLower(input)