aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_auth_rm.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-12-08 21:15:06 +0100
committerMichael Muré <batolettre@gmail.com>2019-12-08 21:28:27 +0100
commitb92adfcb5f79f2b32c3dafb0fc3e7f1b753b6197 (patch)
tree69202c4021b10f3ab7b7f5ebf229d501e95c4786 /commands/bridge_auth_rm.go
parent981a4a848b1329da1a73270e27633911f9298bb1 (diff)
downloadgit-bug-b92adfcb5f79f2b32c3dafb0fc3e7f1b753b6197.tar.gz
bridge: huge refactor to accept multiple kind of credentials
Diffstat (limited to 'commands/bridge_auth_rm.go')
-rw-r--r--commands/bridge_auth_rm.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/bridge_auth_rm.go b/commands/bridge_auth_rm.go
index b0b4d437..17e70625 100644
--- a/commands/bridge_auth_rm.go
+++ b/commands/bridge_auth_rm.go
@@ -5,21 +5,21 @@ import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/bridge/core"
+ "github.com/MichaelMure/git-bug/bridge/core/auth"
)
func runBridgeAuthRm(cmd *cobra.Command, args []string) error {
- token, err := core.LoadTokenPrefix(repo, args[0])
+ cred, err := auth.LoadWithPrefix(repo, args[0])
if err != nil {
return err
}
- err = core.RemoveToken(repo, token.ID())
+ err = auth.Remove(repo, cred.ID())
if err != nil {
return err
}
- fmt.Printf("token %s removed\n", token.ID())
+ fmt.Printf("credential %s removed\n", cred.ID())
return nil
}