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

Commit 85113d8

Browse files
committed
Revert "Make in-line progression"
This reverts commit b6d7b7e. This is done to ensure that the progress-related output is formatted nicely even in CI logs or other scenarios.
1 parent b6d7b7e commit 85113d8

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

internals/secrethub/migrate.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,6 @@ func (cmd *MigrateApplyCommand) Run() error {
496496

497497
i := 1
498498
for _, vault := range plan.vaults {
499-
if i != 1 {
500-
fmt.Fprintf(cmd.io.Output(), "\033[1A\033[K")
501-
}
502499
fmt.Fprintf(cmd.io.Output(), "[%d/%d] Checking vault: %s\n", i, len(plan.vaults), vault.Name)
503500
vaultExists, err := onepassword.ExistsVault(vault.Name)
504501
if err != nil {
@@ -605,17 +602,12 @@ func (cmd *MigrateApplyCommand) Run() error {
605602
fmt.Fprintln(cmd.io.Output())
606603
fmt.Fprintf(cmd.io.Output(), "Applying changes:\n")
607604
for i, change := range changes {
608-
if i != 0 {
609-
fmt.Fprintf(cmd.io.Output(), "\033[1A\033[K")
610-
}
611605
fmt.Fprintf(cmd.io.Output(), "[%d/%d]\n", i, len(changes))
612606
err := change.Apply()
613607
if err != nil {
614608
return err
615609
}
616610
}
617-
fmt.Fprintf(cmd.io.Output(), "\033[1A\033[K")
618-
fmt.Fprintf(cmd.io.Output(), "[%d/%d]\n", len(changes), len(changes))
619611
fmt.Fprintf(cmd.io.Output(), "Migration completed\n")
620612
return nil
621613
}

0 commit comments

Comments
 (0)