Skip to content

Commit 669f2ca

Browse files
committed
Discard output of browser pkg
1 parent 8ea2920 commit 669f2ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cli/login.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,10 @@ func openURL(urlToOpen string) error {
219219
return exec.Command(cmd, args...).Start()
220220
}
221221

222+
// Hide output from the browser library,
223+
// otherwise we can get really verbose and non-actionable messages
224+
// when in SSH or another type of headless session
225+
browser.Stderr = ioutil.Discard
226+
browser.Stdout = ioutil.Discard
222227
return browser.OpenURL(urlToOpen)
223228
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy