| 1 |
|
| 2 |
|
| 3 |
package open |
| 4 |
|
| 5 |
import ( |
| 6 |
"os/exec" |
| 7 |
) |
| 8 |
|
| 9 |
func open(input string) *exec.Cmd { |
| 10 |
return exec.Command("open", input) |
| 11 |
} |
| 12 |
|
| 13 |
func openWith(input string, appName string) *exec.Cmd { |
| 14 |
return exec.Command("open", "-a", appName, input) |
| 15 |
} |