aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/config.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-15 13:54:30 +0100
committerGitHub <noreply@github.com>2020-02-15 13:54:30 +0100
commit02548c0e8f96a5c08efe46bd5f71f97fdd211de3 (patch)
treebb537e52035aa1d60d0405f7177b510e96aff1a6 /bridge/core/config.go
parent362c0c7e2e1ce9a8e2918376a340c76f46569d64 (diff)
parent87b97ca4b2f39240c698596ac14a6d3532f6363d (diff)
downloadgit-bug-02548c0e8f96a5c08efe46bd5f71f97fdd211de3.tar.gz
Merge pull request #326 from MichaelMure/bridge-refactor
bridges: more refactor and cleanup
Diffstat (limited to 'bridge/core/config.go')
-rw-r--r--bridge/core/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/core/config.go b/bridge/core/config.go
index afcda560..7f8d7e13 100644
--- a/bridge/core/config.go
+++ b/bridge/core/config.go
@@ -1,6 +1,8 @@
package core
import (
+ "fmt"
+
"github.com/MichaelMure/git-bug/cache"
"github.com/MichaelMure/git-bug/identity"
)
@@ -24,6 +26,7 @@ func FinishConfig(repo *cache.RepoCache, metaKey string, login string) error {
return err
}
if err == nil {
+ fmt.Printf("Current identity %v tagged with login %v\n", user.Id().Human(), login)
// found one
user.SetMetadata(metaKey, login)
return user.CommitAsNeeded()
@@ -42,5 +45,7 @@ func FinishConfig(repo *cache.RepoCache, metaKey string, login string) error {
return err
}
+ fmt.Printf("Identity %v created, set as current\n", i.Id().Human())
+
return nil
}