mirror of
https://github.com/kopia/kopia.git
synced 2026-01-02 19:47:51 -05:00
* fixed godot linter errors * reformatted source with gofumpt * disabled some linters * fixed nolintlint warnings * fixed gci warnings * lint: fixed 'nestif' warnings * lint: fixed 'exhaustive' warnings * lint: fixed 'gocritic' warnings * lint: fixed 'noctx' warnings * lint: fixed 'wsl' warnings * lint: fixed 'goerr113' warnings * lint: fixed 'gosec' warnings * lint: upgraded linter to 1.30.0 * lint: more 'exhaustive' warnings Co-authored-by: Nick <nick@kasten.io>
18 lines
393 B
Go
18 lines
393 B
Go
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.DirectRepository) error {
|
|
return rep.Content.SyncMetadataCache(ctx)
|
|
}
|
|
|
|
func init() {
|
|
cacheSyncCommand.Action(directRepositoryAction(runCacheSyncCommand))
|
|
}
|