implement progress bar for index loading

This commit is contained in:
arjunajesh authored and Michael Eischer committed 2023-10-01 19:52:59 +02:00
1 parent eac1c4a8d0
commit ed65a7dbca
24 files changed
+80 -37

No files matched your search

+2 -1
View File
@@ -152,7 +152,8 @@ func runDump(ctx context.Context, opts DumpOptions, gopts GlobalOptions, args []
return errors.Fatalf("failed to find snapshot: %v", err)
}
err = repo.LoadIndex(ctx)
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
err = repo.LoadIndex(ctx, bar)
if err != nil {
return err
}