mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-23 02:51:37 +01:00
16 lines
239 B
Go
16 lines
239 B
Go
|
// +build darwin
|
||
|
|
||
|
package open
|
||
|
|
||
|
import (
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
func open(input string) *exec.Cmd {
|
||
|
return exec.Command("open", input)
|
||
|
}
|
||
|
|
||
|
func openWith(input string, appName string) *exec.Cmd {
|
||
|
return exec.Command("open", "-a", appName, input)
|
||
|
}
|