centralize index progress bar for termstatus

This commit is contained in:
Michael Eischer
2025-09-15 20:25:17 +02:00
parent 6cdb9a75e6
commit 32b7168a9e
8 changed files with 29 additions and 12 deletions
+2 -1
View File
@@ -552,7 +552,8 @@ func runBackup(ctx context.Context, opts BackupOptions, gopts GlobalOptions, ter
progressPrinter.V("load index files")
}
bar := newIndexTerminalProgress(gopts.Quiet, gopts.JSON, term)
msg := newTerminalProgressPrinter(gopts.JSON, gopts.verbosity, term)
bar := newIndexTerminalProgress(msg)
err = repo.LoadIndex(ctx, bar)
if err != nil {
return err