aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user_create.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-24 14:45:24 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:48:51 +0100
commit304a3349300bba909b1f69e54c0d2d8a338994d1 (patch)
tree4b48eb550a9a71389bfaefc5b11c5ba5c5b6398a /commands/user_create.go
parent7a80d8f849861a6033cd0765e5d85a52b08a8854 (diff)
downloadgit-bug-304a3349300bba909b1f69e54c0d2d8a338994d1.tar.gz
commands: add a "user adopt" command to use an existing identity
Diffstat (limited to 'commands/user_create.go')
-rw-r--r--commands/user_create.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/user_create.go b/commands/user_create.go
index 2d007600..00ec5b9b 100644
--- a/commands/user_create.go
+++ b/commands/user_create.go
@@ -18,6 +18,10 @@ func runUserCreate(cmd *cobra.Command, args []string) error {
defer backend.Close()
interrupt.RegisterCleaner(backend.Close)
+ _, _ = fmt.Fprintf(os.Stderr, "Before creating a new identity, please be aware that "+
+ "you can also use an already existing one using \"git bug user adopt\". As an example, "+
+ "you can do that if your identity has already been created by an importer.\n\n")
+
preName, err := backend.GetUserName()
if err != nil {
return err