Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit db44062

Browse files
committed
Abort apply if no input provided
Considering the similarity with `terraform apply`, by default it would abort if no input is prompted. We should do the same to not trigger the apply by accidentally pressing enter.
1 parent b91a7e9 commit db44062

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internals/secrethub/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ func (cmd *MigrateApplyCommand) Run() error {
589589

590590
if !cmd.update {
591591
fmt.Fprintln(cmd.io.Output())
592-
confirmed, err := ui.AskYesNo(cmd.io, "Would you like to apply these changes?", ui.DefaultYes)
592+
confirmed, err := ui.AskYesNo(cmd.io, "Would you like to apply these changes?", ui.DefaultNo)
593593
if err != nil {
594594
return errors.New("error prompting for confirmation. Run the command again with --update to skip this prompt")
595595
}

0 commit comments

Comments
 (0)