https://github.com/predominant/pushtime
When a problem comes along, you must push it!
https://github.com/predominant/pushtime
Last synced: 3 months ago
JSON representation
When a problem comes along, you must push it!
- Host: GitHub
- URL: https://github.com/predominant/pushtime
- Owner: predominant
- License: apache-2.0
- Created: 2023-11-11T11:40:49.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-13T11:03:00.000Z (over 1 year ago)
- Last Synced: 2025-02-01T09:27:26.695Z (4 months ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
Pushtime is a small binary that integrates with the [Pushover][pushover] service to send push notifications with execution information to your mobile device.
It is particularly handy when you want to get notified upon completion of long running tasks.
Pushtime is inspired by the GNU utility `time` that is used to measure execution time of a command.
# Usage
Ensure your configuration is available at `$HOME/.pushtime`. Sample configuration is included in this repository as `.pushtime.sample`, it should look like the following:
```
PUSHOVER_USER=USER-TOKEN
PUSHOVER_TOKEN=APPLICATION-TOKEN
```You can fetch these tokens from your [Pushover][pushover] dashboard.
## Basic Commands
Run your command with `pushtime` as a prefix:
```shell
pushtime ls
```You will see the output of the command, followed by a push notification identifying the total runtime, and exit code, along with the full command line used.
## Commands with arguments
Nothing special required. Anything you put after `pushtime` will be considered a command and its arguments.
```shell
pushtime ls -la
```[pushover]: https://pushover.net