Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amanjeev/watchr
Execute a command periodically. Like watch(1) command.
https://github.com/amanjeev/watchr
linux rust watch
Last synced: 10 days ago
JSON representation
Execute a command periodically. Like watch(1) command.
- Host: GitHub
- URL: https://github.com/amanjeev/watchr
- Owner: amanjeev
- License: agpl-3.0
- Created: 2021-10-28T16:38:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T20:29:52.000Z (over 1 year ago)
- Last Synced: 2024-10-08T15:08:23.646Z (about 1 month ago)
- Topics: linux, rust, watch
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# watchr
This is a tool similar to Linux [`watch(1)`](https://man7.org/linux/man-pages/man1/watch.1.html)
which runs your command periodically. The enhancement in this tool over that one is that this
one allows you to see the history of the runs if you want to compare your command's current output
with an iteration a few seconds ago.## Installation
`cargo install watchr`
This will deploy a binary named `wr` in your `.cargo` directory.
## Usage
```shell
Incomplete `GNU cat` in Rust for learning purposesUsage: wr [OPTIONS]
Arguments:
Options:
-c
-d [default: 1]
-h, --help Print help
-V, --version Print version
```## Caveats
- Does not support error propagation if exit code is not 0 of your command
- Linux only