Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion configure_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ for email: %q

err = c.login.storeCredentials(e, email, &credentials{token: token})
if err == nil {
fmt.Fprintln(e.Out, "Successfully stored credentials.")
if c.isDefault {
fmt.Fprintln(e.Out, "Successfully stored default account key.")
}
fmt.Fprintf(e.Out, "Successfully stored account key for: %q.\n", email)
}
return stackerr.Wrap(err)
}
Expand Down
2 changes: 1 addition & 1 deletion configure_cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestConfigureAccessToken(t *testing.T) {
h.Out.String(),
`
Input your account key or press enter to generate a new one.
Account Key: Successfully stored credentials.
Account Key: Successfully stored account key for: "email".
`)
h.env.In = ioutil.NopCloser(strings.NewReader("email\ninvalid\n"))
ensure.Err(t, c.accountKey(h.env), regexp.MustCompile("is not valid"))
Expand Down
1 change: 1 addition & 0 deletions login.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ To save time logging in, you should create an account key.
fmt.Fprintln(
e.Out,
`Type "parse configure accountkey" to create a new account key.
Read more at: https://parse.com/docs/js/guide#command-line-account-keys

Please login to Parse using your email and password.`,
)
Expand Down
1 change: 1 addition & 0 deletions migrate_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func (m *migrateCmd) run(e *env) error {
fmt.Fprintf(e.Err, "Failed to clean up: %q. Please remove this file manually.\n", project)
}
}
fmt.Fprintln(e.Out, "Successfully migrated to the preferred config format.")
return nil
}

Expand Down