Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 990 Bytes

File metadata and controls

52 lines (36 loc) · 990 Bytes

pingrb cli

Send yourself a push notification from anything that can shell out.

Install

brew install ruby-native/tap/pingrb

Or build from source:

go install github.com/ruby-native/pingrb-cli@latest

Usage

pingrb configure <your-token>
pingrb "deploy failed"
pingrb "job done" --body "backfill finished" --url https://example.com/jobs/42
some-long-job && pingrb "$?" --body "done"

Get the token by adding a CLI source on https://pingrb.com.

Config is stored at the platform's standard user config dir (~/.config/pingrb on Linux, ~/Library/Application Support/pingrb on macOS).

Set PINGRB_HOST to point at a non-production instance (defaults to https://pingrb.com).

Develop

go test ./...
go build -o pingrb .
./pingrb --help

Release

Tag and push:

git tag v0.1.0
git push --tags

GitHub Actions builds binaries for darwin and linux on amd64 and arm64 via goreleaser, then publishes them as a GitHub Release.