We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3bf665 commit f22a8feCopy full SHA for f22a8fe
1 file changed
internal/auth/login.go
@@ -5,6 +5,7 @@ package auth
5
import (
6
"context"
7
"fmt"
8
+ "io"
9
"net/url"
10
"strings"
11
@@ -44,6 +45,8 @@ func (l *loginProvider) Login(ctx context.Context) (string, error) {
44
45
Code: authReq.Code,
46
URL: authURL,
47
})
48
+ browser.Stdout = io.Discard
49
+ browser.Stderr = io.Discard
50
if err := browser.OpenURL(authURL); err != nil {
51
output.EmitWarning(l.sink, fmt.Sprintf("Failed to open browser automatically. Open this URL manually to continue: %s", authURL))
52
}
0 commit comments