mirror of
https://github.com/kopia/kopia.git
synced 2026-01-25 23:08:01 -05:00
19 lines
363 B
Go
19 lines
363 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/kopia/kopia/repo"
|
|
"gopkg.in/alecthomas/kingpin.v2"
|
|
)
|
|
|
|
var (
|
|
disconnectCommand = app.Command("disconnect", "Disconnect from a repository.")
|
|
)
|
|
|
|
func init() {
|
|
disconnectCommand.Action(runDisconnectCommand)
|
|
}
|
|
|
|
func runDisconnectCommand(context *kingpin.ParseContext) error {
|
|
return repo.Disconnect(repositoryConfigFileName())
|
|
}
|