watchr

Crates.iowatchr
lib.rswatchr
version
sourcesrc
created_at2021-10-28 16:49:17.679279
updated_at2024-11-19 00:33:14.838683
descriptionExecute a command periodically. Like watch(1) command.
homepagehttps://amanjeev.com
repositoryhttps://github.com/amanjeev/watchr
max_upload_size
id473626
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Amanjeev Sethi (amanjeev)

documentation

README

watchr

This is a tool similar to Linux watch(1) 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

Incomplete `GNU cat` in Rust for learning purposes

Usage: wr [OPTIONS] <command>

Arguments:
  <command>

Options:
  -c
  -d <duration>      [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
Commit count: 18

cargo fmt