Files
kopia/cli/command_repository_upgrade.go
2019-05-27 15:48:39 -07:00

20 lines
341 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.Repository) error {
return rep.Upgrade(ctx)
}
func init() {
upgradeCommand.Action(repositoryAction(runUpgradeCommand))
}