mirror of
https://github.com/kopia/kopia.git
synced 2026-03-12 19:26:25 -04: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
348 B
Go
18 lines
348 B
Go
package cli
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/repo"
|
|
)
|
|
|
|
var upgradeCommand = repositoryCommands.Command("upgrade", "Upgrade repository format.")
|
|
|
|
func runUpgradeCommand(ctx context.Context, rep *repo.DirectRepository) error {
|
|
return rep.Upgrade(ctx)
|
|
}
|
|
|
|
func init() {
|
|
upgradeCommand.Action(directRepositoryAction(runUpgradeCommand))
|
|
}
|