check: add index loading progress bar

This commit is contained in:
Michael Eischer
2023-10-01 19:48:56 +02:00
parent b0da0f152f
commit 91aef00df3
5 changed files with 45 additions and 15 deletions
+2 -1
View File
@@ -226,7 +226,8 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
}
Verbosef("load indexes\n")
hints, errs := chkr.LoadIndex(ctx)
bar := newIndexProgress(gopts.Quiet, gopts.JSON)
hints, errs := chkr.LoadIndex(ctx, bar)
errorsFound := false
suggestIndexRebuild := false