open-golang/open/exec_darwin.go

17 lines
263 B
Go
Raw Normal View History

2023-06-22 22:53:08 +03:00
//go:build darwin
// +build darwin
package open
import (
"os/exec"
)
func open(input string) *exec.Cmd {
2023-06-22 22:53:08 +03:00
return exec.Command("open", "-w", input)
}
func openWith(input string, appName string) *exec.Cmd {
return exec.Command("open", "-a", appName, input)
}