aboutsummaryrefslogtreecommitdiff
path: root/notify_osx.go
blob: 2e427e91eb33654e35f0c7b82d4bc283ed42f8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()
}