cli: added content verify --include-deleted flag
contentVerifyParallel = contentVerifyCommand.Flag("parallel", "Parallelism").Default("16").Int()
contentVerifyFull = contentVerifyCommand.Flag("full", "Full verification (including download)").Bool()
+ contentVerifyIncludeDeleted = contentVerifyCommand.Flag("include-deleted", "Include deleted contents").Bool()
)
func runContentVerifyCommand(ctx context.Context, rep *repo.DirectRepository) error {
@@ -44,6 +45,7 @@ func runContentVerifyCommand(ctx context.Context, rep *repo.DirectRepository) er
err := rep.Content.IterateContents(ctx, content.IterateOptions{
Range: contentIDRange(),
Parallel: *contentVerifyParallel,
+ IncludeDeleted: *contentVerifyIncludeDeleted,
}, func(ci content.Info) error {
if err := contentVerify(ctx, rep, &ci, blobMap); err != nil {
log(ctx).Errorf("error %v", err)
