move NewProgressPrinter to ui package

This commit is contained in:
Michael Eischer committed 2025-10-03 18:55:46 +02:00
1 parent ff5a0cc851
commit e753941ad3
39 files changed
+151 -148

No files matched your search

+2 -2
View File
@@ -99,7 +99,7 @@ func runStats(ctx context.Context, opts StatsOptions, gopts GlobalOptions, args
return err
}
printer := newTerminalProgressPrinter(gopts.JSON, gopts.verbosity, term)
printer := ui.NewProgressPrinter(gopts.JSON, gopts.verbosity, term)
ctx, repo, unlock, err := openWithReadLock(ctx, gopts, gopts.NoLock, printer)
if err != nil {
@@ -111,7 +111,7 @@ func runStats(ctx context.Context, opts StatsOptions, gopts GlobalOptions, args
if err != nil {
return err
}
bar := newIndexTerminalProgress(printer)
bar := ui.NewIndexCounter(printer)
if err = repo.LoadIndex(ctx, bar); err != nil {
return err
}