package cli import ( "context" "github.com/kopia/kopia/repo" ) var cacheSyncCommand = cacheCommands.Command("sync", "Synchronizes the metadata cache with blobs in storage") func runCacheSyncCommand(ctx context.Context, rep repo.DirectRepositoryWriter) error { return rep.ContentManager().SyncMetadataCache(ctx) } func init() { cacheSyncCommand.Action(directRepositoryWriteAction(runCacheSyncCommand)) }