mirror of
https://github.com/restic/restic.git
synced 2026-07-15 19:54:55 +00:00
restore: reorganize progress bar code
The structure is now much more similar to that of the backup command.
This commit is contained in:
@@ -177,7 +177,7 @@ func runRestore(ctx context.Context, opts RestoreOptions, gopts GlobalOptions,
|
||||
|
||||
var progress *restoreui.Progress
|
||||
if !gopts.Quiet && !gopts.JSON {
|
||||
progress = restoreui.NewProgress(restoreui.NewProgressPrinter(term), calculateProgressInterval(!gopts.Quiet, gopts.JSON))
|
||||
progress = restoreui.NewProgress(restoreui.NewTextPrinter(term), calculateProgressInterval(!gopts.Quiet, gopts.JSON))
|
||||
}
|
||||
|
||||
res := restorer.NewRestorer(repo, sn, opts.Sparse, progress)
|
||||
|
||||
Reference in New Issue
Block a user