From b92adfcb5f79f2b32c3dafb0fc3e7f1b753b6197 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 8 Dec 2019 21:15:06 +0100 Subject: bridge: huge refactor to accept multiple kind of credentials --- commands/user.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'commands/user.go') diff --git a/commands/user.go b/commands/user.go index 254abf2f..f669c73f 100644 --- a/commands/user.go +++ b/commands/user.go @@ -4,9 +4,10 @@ import ( "errors" "fmt" + "github.com/spf13/cobra" + "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/util/interrupt" - "github.com/spf13/cobra" ) var ( @@ -84,7 +85,7 @@ func runUser(cmd *cobra.Command, args []string) error { var userCmd = &cobra.Command{ Use: "user []", Short: "Display or change the user identity.", - PreRunE: loadRepo, + PreRunE: loadRepoEnsureUser, RunE: runUser, } -- cgit