mirror of
https://github.com/kopia/kopia.git
synced 2026-02-05 04:03:27 -05:00
20 lines
366 B
Go
20 lines
366 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 {
|
|
return repo.Disconnect(repositoryConfigFileName())
|
|
}
|