diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-04 00:40:32 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-17 23:33:32 +0200 |
commit | ee2ca519e62d80531030b4e323d6528293fd3238 (patch) | |
tree | 99f94ddb3fd92f959eeeea2ca3526b18ce1fc640 /commands/bridge_rm.go | |
parent | 470996a0cef56551262a2fb436b778d8fe4be941 (diff) | |
download | git-bug-ee2ca519e62d80531030b4e323d6528293fd3238.tar.gz |
Changes to Repo.RmConfigs
RmConfigs try to remove key/value or section from keyPrefix
Diffstat (limited to 'commands/bridge_rm.go')
-rw-r--r-- | commands/bridge_rm.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/commands/bridge_rm.go b/commands/bridge_rm.go index 5d38083c..f3094bf4 100644 --- a/commands/bridge_rm.go +++ b/commands/bridge_rm.go @@ -1,10 +1,13 @@ package commands import ( + "fmt" + + "github.com/spf13/cobra" + "github.com/MichaelMure/git-bug/bridge" "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/util/interrupt" - "github.com/spf13/cobra" ) func runBridgeRm(cmd *cobra.Command, args []string) error { @@ -20,11 +23,12 @@ func runBridgeRm(cmd *cobra.Command, args []string) error { return err } + fmt.Printf("Successfully deleted bridge %v", args[0]) return nil } var bridgeRmCmd = &cobra.Command{ - Use: "rm name <name>", + Use: "rm <name>", Short: "Delete a configured bridge.", PreRunE: loadRepo, RunE: runBridgeRm, |