Skip to content

Commit

Permalink
allow destructive prompts to be ctrl+d out
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Oct 16, 2020
1 parent 830c61d commit 146483b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func dialogDesctructiveConfirmProceed() (proceed bool) {
for !haveConfirmationAnswer {
utils.PrintRed("This is a destructive operation. Continue? ")
answer := strings.ToLower(prompt.Input("> ", f, prompt.OptionShowCompletionAtStart()))
if answer == "yes" || answer == "no" {
if answer == "yes" || answer == "no" || answer == "" {
haveConfirmationAnswer = true
if answer == "yes" {
proceed = true
Expand Down

0 comments on commit 146483b

Please sign in to comment.