mirror of
https://github.com/kopia/kopia.git
synced 2026-01-28 00:08:04 -05:00
20 lines
341 B
Go
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))
|
|
}
|