aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-06-04 00:40:32 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-17 23:33:32 +0200
commitee2ca519e62d80531030b4e323d6528293fd3238 (patch)
tree99f94ddb3fd92f959eeeea2ca3526b18ce1fc640 /commands
parent470996a0cef56551262a2fb436b778d8fe4be941 (diff)
downloadgit-bug-ee2ca519e62d80531030b4e323d6528293fd3238.tar.gz
Changes to Repo.RmConfigs
RmConfigs try to remove key/value or section from keyPrefix
Diffstat (limited to 'commands')
-rw-r--r--commands/bridge_rm.go8
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,