Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth init: print instructions on how to generate a token #764

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
auth init: print instructions on how to generate a token
  • Loading branch information
kamaln7 committed Mar 16, 2020
commit eca0f27e7a10f7022afcd154781370afc9821af2
3 changes: 2 additions & 1 deletion commands/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ func retrieveUserTokenFromCommandLine() (string, error) {
return "", ErrUnknownTerminal
}

fmt.Print("DigitalOcean access token: ")
fmt.Print("Please authenticate doctl for use with your DigitalOcean account. You can generate a token in the control panel at https://cloud.digitalocean.com/account/api/token\n\n")
fmt.Print("Enter your access token: ")
passwdBytes, err := terminal.ReadPassword(int(syscall.Stdin))
if err != nil {
return "", err
Expand Down