aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user_create.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-04 22:05:34 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:19:57 +0100
commit646fd681ffba59d4a74ec3d99558d2ed70b0106b (patch)
tree377a8b82701690fa1648d393a39034e0b6a77539 /commands/user_create.go
parentf515b9a1291ddd3e4fe1b43bf5891ab19569e33f (diff)
downloadgit-bug-646fd681ffba59d4a74ec3d99558d2ed70b0106b.tar.gz
it compiles \o/
Diffstat (limited to 'commands/user_create.go')
-rw-r--r--commands/user_create.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/user_create.go b/commands/user_create.go
index dab8a879..95e09050 100644
--- a/commands/user_create.go
+++ b/commands/user_create.go
@@ -23,7 +23,7 @@ func runUserCreate(cmd *cobra.Command, args []string) error {
return err
}
- name, err := input.Prompt("Name", "name", preName, input.Required)
+ name, err := input.PromptDefault("Name", "name", preName, input.Required)
if err != nil {
return err
}
@@ -33,17 +33,17 @@ func runUserCreate(cmd *cobra.Command, args []string) error {
return err
}
- email, err := input.Prompt("Email", "email", preEmail, input.Required)
+ email, err := input.PromptDefault("Email", "email", preEmail, input.Required)
if err != nil {
return err
}
- login, err := input.Prompt("Avatar URL", "avatar", "")
+ avatarURL, err := input.Prompt("Avatar URL", "avatar")
if err != nil {
return err
}
- id, err := backend.NewIdentityRaw(name, email, "", login, nil)
+ id, err := backend.NewIdentityRaw(name, email, avatarURL, nil)
if err != nil {
return err
}