mirror of
https://github.com/restic/restic.git
synced 2026-10-07 11:07:11 +00:00
move NewProgressPrinter to ui package
This commit is contained in:
1 parent
ff5a0cc851
commit
e753941ad3
39 files changed
+151
-148
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user