Skip to content

Commit ec8c96b

Browse files
committed
Improved help messages for login (#59)
1 parent 9ecfe87 commit ec8c96b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

login.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ var cmdLogin = &Command{
1818
Description: "Log in to Scaleway API",
1919
Help: `Generates a configuration file in '/home/$USER/.scwrc'
2020
containing credentials used to interact with the Scaleway API. This
21-
configuration file is automatically used by the 'scw' commands.`,
21+
configuration file is automatically used by the 'scw' commands.
22+
23+
You can get your credentials on https://cloud.scaleway.com/#/credentials
24+
`,
2225
}
2326

2427
func promptUser(prompt string, output *string, echo bool) {
@@ -58,7 +61,8 @@ func runLogin(cmd *Command, args []string) {
5861
}
5962

6063
if len(organization) == 0 {
61-
promptUser("Organization: ", &organization, true)
64+
fmt.Println("You can get your credentials on https://cloud.scaleway.com/#/credentials")
65+
promptUser("Organization (access key): ", &organization, true)
6266
}
6367
if len(token) == 0 {
6468
promptUser("Token: ", &token, false)

0 commit comments

Comments
 (0)