pushover.net cli
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
glide.yaml
localwercker.sh
pushovercli.go
wercker.yml

README.md

pushovercli wercker status

pushcli is a commandline tool for the pushover.net api.

Installation

Get one of the pre-compiled binaries from the releases pages.

Usage

./pushovercli --help
Usage of ./pushovercli:
  -devices string
    	Notification devices comma separated
  -priority int
    	Notification priority
  -sound string
    	Notification sound
  -timestamp string
    	Notification timestamp
  -timestamp_format string
    	Notification timestamp format, e.g. Mon Jan 2 15:04:05 -0700 MST 2006
  -title string
    	Notification title
  -token string
    	Pushover application token
  -url string
    	Notification url
  -url_title string
    	Notification url title
  -user string
    	Pushover user token

The last argument is the send message.

Example

PUSHOVER_TITLE="My Title" ./pushovercli -user "usertoken" -token "apptoken" "My message"

Environment

Each flag overrides the corresponding environment flag. Therefor it's possible to pre-configure using the environment variables.

  • PUSHOVER_TOKEN
  • PUSHOVER_USER
  • PUSHOVER_TITLE
  • PUSHOVER_URL
  • PUSHOVER_URL_TITLE
  • PUSHOVER_DEVICES
  • PUSHOVER_PRIORITY
  • PUSHOVER_SOUND
  • PUSHOVER_TIMESTAMP
  • PUSHOVER_TIMESTAMP_FORMAT

Exit Codes

  • 0 Successful delivery to pushover.net
  • 1 Error creating the request (e.g. parsing timestamp)
  • 2 Error returned by the pushover api

Build

Requirements: glide

$ git clone https://github.com/blang/pushover-tools
$ cd pushover-tools/pushcli
$ export GO15VENDOREXPERIMENT=1
$ glide install
$ go build