3 releases (stable)
new 1.0.1 | Jan 10, 2025 |
---|---|
0.1.0 | Jan 10, 2025 |
#111 in Build Utils
368 downloads per month
9KB
170 lines
👀 watch-files
watch-files
is a basic file system watcher to execute a command upon file changes.
Install
To install the binary, run:
cargo install watch-files
Usage
<files> | watch-files "<command>"
<files> | watch-files [-p <poll_time_in_ms>] "<command>"
watch-files -h|--help
Examples
The following will watch all files in the src
directory, and run cargo build
when a file changes.
find src/* | watch-files "cargo build"
The following will watch all files in the src
directory every 1000
milliseconds, and run cargo build
when a file change is detected.
find src/* | watch-files --poll-rate 1000 "cargo build"
The following will print the help text
watch-files --help