mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-19 02:01:42 -05:00
17 lines
283 B
Go
17 lines
283 B
Go
package browser
|
|
|
|
import (
|
|
"os/exec"
|
|
"strings"
|
|
"syscall"
|
|
)
|
|
|
|
func openBrowser(url string) error {
|
|
r := strings.NewReplacer("&", "^&")
|
|
return runCmd("cmd", "/c", "start", r.Replace(url))
|
|
}
|
|
|
|
func setFlags(cmd *exec.Cmd) {
|
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
|
}
|