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

Commit 004c4b8

Browse files
committed
Improve formatting of migrate apply output
1 parent fb69caf commit 004c4b8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internals/secrethub/migrate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ func (cmd *MigrateApplyCommand) Run() error {
588588
fmt.Fprintf(cmd.io.Output(), "%d fields will be skipped\n", skipCount)
589589

590590
if !cmd.update {
591+
fmt.Fprintln(cmd.io.Output())
591592
confirmed, err := ui.AskYesNo(cmd.io, "Would you like to apply these changes?", ui.DefaultYes)
592593
if err != nil {
593594
return errors.New("error prompting for confirmation. Run the command again with --update to skip this prompt")
@@ -598,6 +599,7 @@ func (cmd *MigrateApplyCommand) Run() error {
598599
}
599600
}
600601

602+
fmt.Fprintln(cmd.io.Output())
601603
fmt.Fprintf(cmd.io.Output(), "Applying changes:\n")
602604
for i, change := range changes {
603605
fmt.Fprintf(cmd.io.Output(), "[%d/%d]\n", i, len(changes))

0 commit comments

Comments
 (0)