Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 15d8ca1

Browse files
committed
[accountkey] add descriptive message at creation
add a descriptive message of what happens at key creation time
1 parent a1eaa19 commit 15d8ca1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

configure_cmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestConfigureAccountKey(t *testing.T) {
2626
t,
2727
h.Out.String(),
2828
`
29-
Input your account key or press enter to generate a new one.
29+
Input your account key or press ENTER to generate a new one.
3030
`)
3131

3232
h.env.In = ioutil.NopCloser(strings.NewReader("invalid\n"))

login.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,14 @@ Please login to Parse using your email and password.`,
298298

299299
func (l *login) helpCreateToken(e *env) (string, error) {
300300
for i := 0; i < 4; i++ {
301-
fmt.Fprintln(e.Out, "\nInput your account key or press enter to generate a new one.")
301+
fmt.Fprintf(e.Out, `
302+
Input your account key or press ENTER to generate a new one.
303+
NOTE: on pressing ENTER we'll try to open the url:
304+
%q
305+
in default browser.
306+
`,
307+
keysURL,
308+
)
302309
fmt.Fprintf(e.Out, `Account Key: `)
303310

304311
var token string

0 commit comments

Comments
 (0)