#watch #change #command #file #file-path #run #set

bin+lib watchy

Watch a set of files for changes and run a command on change

1 unstable release

new 0.1.0 Feb 17, 2025

#2825 in Command line utilities

Apache-2.0

7KB
96 lines

watchy 🐋

Watch files and runs a command on file change with the file path passed as an argument.

Usage

watchy --watch ./foo.txt --then bar

When ./foo.txt changes, watchy will execute bar ./foo.txt.

Notes

We use IN_ONESHOT because some programs update by moving.

Dependencies

~5MB
~94K SLoC