2023-06-22 22:53:08 +03:00
|
|
|
//go:build darwin
|
2014-02-04 20:11:26 +04:00
|
|
|
// +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)
|
2014-02-04 20:11:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func openWith(input string, appName string) *exec.Cmd {
|
|
|
|
return exec.Command("open", "-a", appName, input)
|
|
|
|
}
|