Skip to content

Commit 146483b

Browse files
committed
allow destructive prompts to be ctrl+d out
1 parent 830c61d commit 146483b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func dialogDesctructiveConfirmProceed() (proceed bool) {
122122
for !haveConfirmationAnswer {
123123
utils.PrintRed("This is a destructive operation. Continue? ")
124124
answer := strings.ToLower(prompt.Input("> ", f, prompt.OptionShowCompletionAtStart()))
125-
if answer == "yes" || answer == "no" {
125+
if answer == "yes" || answer == "no" || answer == "" {
126126
haveConfirmationAnswer = true
127127
if answer == "yes" {
128128
proceed = true

0 commit comments

Comments
 (0)