johnae / spook

Lightweight programmable evented utility based on LuaJIT and ljsyscall
Other
35 stars 0 forks source link

Add entr-like functionality. #37

Closed johnae closed 7 years ago

johnae commented 7 years ago

This implements entr like functionality. Basically, if there's anything (when starting up) on stdin it will assume an entr like identity where files to watch are expected on stdin and a command should be given to spook to run when something does change. Basically:

find . -type f | spook echo file: {file}