handleNotifyDarwin displays a desktop notification on OS X.
(r *Request)
| 146 | |
| 147 | // handleNotifyDarwin displays a desktop notification on OS X. |
| 148 | func handleNotifyDarwin(r *Request) (interface{}, error) { |
| 149 | args := r.Args.MustSliceOfLength(3) |
| 150 | cmd := exec.Command("osascript", "-e", fmt.Sprintf("display notification \"%s\" with title \"%s\" subtitle \"%s\"", |
| 151 | args[1].MustString(), args[2].MustString(), args[0].MustString())) |
| 152 | return nil, cmd.Start() |
| 153 | } |
| 154 | |
| 155 | // handleTunnel opens two websockets, one to proxy kite and one to itself, |
| 156 | // then it copies the message between them. |
nothing calls this directly
no test coverage detected