diff options
author | Michael Muré <batolettre@gmail.com> | 2019-06-19 18:11:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 18:11:31 +0200 |
commit | 89c6732354ba4efd7c36c253fc5d02f0b6c7a7a4 (patch) | |
tree | 1d31091fa66d11a56bcbb9697bcefc2c9ab8951c /commands/bridge_rm.go | |
parent | 777ccb9c68e10bdd9b8a4d33449795dd6e52f768 (diff) | |
parent | acfd8ffdd7b2e019168467810a817a0b6ea084e6 (diff) | |
download | git-bug-89c6732354ba4efd7c36c253fc5d02f0b6c7a7a4.tar.gz |
Merge pull request #156 from A-Hilaly/bridge-rm
Fix bridge rm command
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..1c840e8a 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 removed bridge configuration %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, |