#sh #notes #watchy

bin+lib watchy

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

3 releases

0.1.2 Mar 1, 2025
0.1.1 Feb 23, 2025
0.1.0 Feb 17, 2025

#1809 in Command line utilities

Download history 192/week @ 2025-02-17 159/week @ 2025-02-24 35/week @ 2025-03-03 2/week @ 2025-03-10

68 downloads per month

Apache-2.0

7KB
97 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.sh

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

Notes

We use IN_ONESHOT because some programs update by moving.

Dependencies

~5MB
~102K SLoC