mirror of
https://github.com/restic/restic.git
synced 2026-08-14 17:43:17 +00:00
implement progress bar for index loading
This commit is contained in:
committed by
Michael Eischer
parent
eac1c4a8d0
commit
ed65a7dbca
@@ -469,7 +469,8 @@ func runDebugExamine(ctx context.Context, gopts GlobalOptions, args []string) er
|
||||
}
|
||||
}
|
||||
|
||||
err = repo.LoadIndex(ctx)
|
||||
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
|
||||
err = repo.LoadIndex(ctx, bar)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user