Skip to content

Commit f22a8fe

Browse files
Remove browser output from TUI (#172)
1 parent a3bf665 commit f22a8fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/auth/login.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package auth
55
import (
66
"context"
77
"fmt"
8+
"io"
89
"net/url"
910
"strings"
1011

@@ -44,6 +45,8 @@ func (l *loginProvider) Login(ctx context.Context) (string, error) {
4445
Code: authReq.Code,
4546
URL: authURL,
4647
})
48+
browser.Stdout = io.Discard
49+
browser.Stderr = io.Discard
4750
if err := browser.OpenURL(authURL); err != nil {
4851
output.EmitWarning(l.sink, fmt.Sprintf("Failed to open browser automatically. Open this URL manually to continue: %s", authURL))
4952
}

0 commit comments

Comments
 (0)