aboutsummaryrefslogtreecommitdiff
path: root/notify_osx.go
diff options
context:
space:
mode:
Diffstat (limited to 'notify_osx.go')
-rw-r--r--notify_osx.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/notify_osx.go b/notify_osx.go
new file mode 100644
index 0000000..2e427e9
--- /dev/null
+++ b/notify_osx.go
@@ -0,0 +1,13 @@
+// +build darwin
+
+package main
+
+import (
+ "fmt"
+ "os/exec"
+)
+
+func notify(s string) error {
+ cmd := fmt.Sprintf("display notification %q with title %q", s, "Pomodoro")
+ return exec.Command("osascript", "-e", cmd).Run()
+}