Merge pull request #7136 from dolthub/steph/login-message

Better messaging for `dolt login`
This commit is contained in:
stephanie
2023-12-11 15:44:08 -08:00
committed by GitHub

View File

@@ -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)
}