watch-files

Crates.iowatch-files
lib.rswatch-files
version1.0.1
created_at2025-01-10 01:47:09.259527+00
updated_at2025-01-10 15:46:06.75073+00
descriptionA dead simple file system watcher
homepage
repository
max_upload_size
id1510845
size9,271
Greg Zanchelli (gregzanch)

documentation

README

:eyes: 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
Commit count: 0

cargo fmt