mirror of
https://github.com/kopia/kopia.git
synced 2026-03-13 11:46:55 -04:00
22 lines
393 B
Go
22 lines
393 B
Go
package cli
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/repo"
|
|
)
|
|
|
|
var (
|
|
disconnectCommand = repositoryCommands.Command("disconnect", "Disconnect from a repository.")
|
|
)
|
|
|
|
func init() {
|
|
disconnectCommand.Action(noRepositoryAction(runDisconnectCommand))
|
|
}
|
|
|
|
func runDisconnectCommand(ctx context.Context) error {
|
|
removeUpdateState()
|
|
|
|
return repo.Disconnect(ctx, repositoryConfigFileName())
|
|
}
|