Demon is a tool that allows you to run any command on file change. Files provides by stdin. The command provides by cli argument.
<stdin> | demon <command>
Run command on single file change
echo "main.go" | demon go run main.go
Run command on all files in current directory
ls | demon go run main.go