Skip to content

Commit

Permalink
added command line notification tool
Browse files Browse the repository at this point in the history
  • Loading branch information
trotha01 committed Jul 9, 2015
1 parent ad3dad2 commit c1760fa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/notify/.gitignore
@@ -0,0 +1 @@
notify
24 changes: 24 additions & 0 deletions cmd/notify/main.go
@@ -0,0 +1,24 @@
package main

import (
"log"
"os"
"strings"

"github.com/deckarep/gosx-notifier"
)

func main() {
notification := strings.Join(os.Args[1:], " ")

note := gosxnotifier.NewNotification(notification)

note.Title = "Notify"

err := note.Push()

//If necessary, check error
if err != nil {
log.Println("Uh oh! Error with Notify")
}
}

0 comments on commit c1760fa

Please sign in to comment.