From 146483b4ac9c6c020261da94de4116381bb35d1b Mon Sep 17 00:00:00 2001 From: Scott Sullivan Date: Fri, 16 Oct 2020 12:10:30 -0400 Subject: [PATCH] allow destructive prompts to be ctrl+d out --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 5143f45..b7c3766 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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