From 072f2b832a3168d15336991024a073b80f73ddab Mon Sep 17 00:00:00 2001 From: Stephanie You Date: Fri, 8 Dec 2023 15:20:23 -0800 Subject: [PATCH 1/2] better messaging for dolt login --- go/cmd/dolt/commands/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/cmd/dolt/commands/login.go b/go/cmd/dolt/commands/login.go index 35ae1ac209..5390713479 100644 --- a/go/cmd/dolt/commands/login.go +++ b/go/cmd/dolt/commands/login.go @@ -243,7 +243,7 @@ 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.Printf("Attempting to automatically open the credentials page in your default browser.\nIf the browser does not open or you wish to use a different device to authorize this request, open the following URL:\n\t%s\nPlease associate your key with your account.\n", url) open.Start(url) } From db9126c60978ba5efc6a918a123d3ebc756fcb9b Mon Sep 17 00:00:00 2001 From: Stephanie You Date: Fri, 8 Dec 2023 15:58:54 -0800 Subject: [PATCH 2/2] more readable formatting --- go/cmd/dolt/commands/login.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/go/cmd/dolt/commands/login.go b/go/cmd/dolt/commands/login.go index 5390713479..a6366fb384 100644 --- a/go/cmd/dolt/commands/login.go +++ b/go/cmd/dolt/commands/login.go @@ -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("Attempting to automatically open the credentials page in your default browser.\nIf the browser does not open or you wish to use a different device to authorize this request, open the following URL:\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) }