github.com/drycc/workflow-cli@v1.5.3-0.20240322092846-d4ee25983af9/pkg/webbrowser/webbrowser_darwin.go (about)

     1  //go:build darwin
     2  // +build darwin
     3  
     4  package webbrowser
     5  
     6  import (
     7  	"os/exec"
     8  )
     9  
    10  // Webbrowser opens a url with the default browser.
    11  func Webbrowser(u string) (err error) {
    12  	_, err = exec.Command("open", u).Output()
    13  	return
    14  }