aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/skratchdot/open-golang/open/exec_darwin.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-16 23:20:23 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-16 23:23:43 +0200
commit1d678dfdfa026968dbb19795c9bed16385603b21 (patch)
treecac862609d0103ee30da39cd0054b11884248e9d /vendor/github.com/skratchdot/open-golang/open/exec_darwin.go
parent131a862d313f12808d63e832126317a27226940b (diff)
downloadgit-bug-1d678dfdfa026968dbb19795c9bed16385603b21.tar.gz
vendor dependencies with dep
Diffstat (limited to 'vendor/github.com/skratchdot/open-golang/open/exec_darwin.go')
-rw-r--r--vendor/github.com/skratchdot/open-golang/open/exec_darwin.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/skratchdot/open-golang/open/exec_darwin.go b/vendor/github.com/skratchdot/open-golang/open/exec_darwin.go
new file mode 100644
index 00000000..16160e6f
--- /dev/null
+++ b/vendor/github.com/skratchdot/open-golang/open/exec_darwin.go
@@ -0,0 +1,15 @@
+// +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)
+}