mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-28 18:30:02 -06:00
Merge pull request #7136 from dolthub/steph/login-message
Better messaging for `dolt login`
This commit is contained in:
@@ -243,7 +243,10 @@ func loginWithCreds(ctx context.Context, dEnv *env.DoltEnv, dc creds.DoltCreds,
|
||||
|
||||
func openBrowserForCredsAdd(dc creds.DoltCreds, loginUrl string) {
|
||||
url := fmt.Sprintf("%s#%s", loginUrl, dc.PubKeyBase32Str())
|
||||
cli.Printf("Opening a browser to:\n\t%s\nPlease associate your key with your account.\n", url)
|
||||
cli.Println("Attempting to automatically open the credentials page in your default browser.")
|
||||
cli.Println("If the browser does not open or you wish to use a different device to authorize this request, open the following URL:")
|
||||
cli.Printf("\t%s\n", url)
|
||||
cli.Println("Please associate your key with your account.")
|
||||
open.Start(url)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user