Watch a directory and rerun a command when certain files change. More information: https://github.com/cespare/reflex.
make
if any file changes:reflex make
.go
file changes:reflex --regex='\.go$' go run .
reflex --inverse-regex='^dir/' command
reflex --start-service=true command
reflex -- echo {}