aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge/bridge_auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/bridge/bridge_auth.go')
-rw-r--r--commands/bridge/bridge_auth.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/commands/bridge/bridge_auth.go b/commands/bridge/bridge_auth.go
index 52e063e6..f27004e0 100644
--- a/commands/bridge/bridge_auth.go
+++ b/commands/bridge/bridge_auth.go
@@ -12,9 +12,7 @@ import (
"github.com/MichaelMure/git-bug/util/colors"
)
-func newBridgeAuthCommand() *cobra.Command {
- env := execenv.NewEnv()
-
+func newBridgeAuthCommand(env *execenv.Env) *cobra.Command {
cmd := &cobra.Command{
Use: "auth",
Short: "List all known bridge authentication credentials",
@@ -25,9 +23,9 @@ func newBridgeAuthCommand() *cobra.Command {
Args: cobra.NoArgs,
}
- cmd.AddCommand(newBridgeAuthAddTokenCommand())
- cmd.AddCommand(newBridgeAuthRm())
- cmd.AddCommand(newBridgeAuthShow())
+ cmd.AddCommand(newBridgeAuthAddTokenCommand(env))
+ cmd.AddCommand(newBridgeAuthRm(env))
+ cmd.AddCommand(newBridgeAuthShow(env))
return cmd
}