We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beadf29 commit 25c4b80Copy full SHA for 25c4b80
packages/util/helper.go
@@ -623,17 +623,3 @@ func OpenBrowser(url string) error {
623
624
return cmd.Start()
625
}
626
-
627
-// OpenBrowser attempts to open a URL in the user's default browser
628
-func OpenBrowser(url string) error {
629
- var cmd *exec.Cmd
630
- switch runtime.GOOS {
631
- case "darwin":
632
- cmd = exec.Command("open", url)
633
- case "windows":
634
- cmd = exec.Command("cmd", "/c", "start", url)
635
- default: // linux and others
636
- cmd = exec.Command("xdg-open", url)
637
- }
638
- return cmd.Start()
639
-}
0 commit comments