crow is a simple command-line utility that lets you run arbitrary commands when certain files change.
A demonstration of crow being used to re-execute tests every time a file is saved. Also, see other use cases.
go get github.com/maaslalani/crow
Install from source
Clone this repository and
cd into it.
git clone [email protected]:maaslalani/crow.git && cd crow
crow with go install.
~/go/bin is in your
crow [--watch path] [--ext extensions] command
or pipe in a list of filenames to watch from
filenames | crow command
crow to run tests once you save
crow -w main.go go test ./...
echo main.go | crow go test ./...
Automatically restart your server on changes (watches all files in the current directory).
crow go run main.go
Live preview markdown in your terminal with glow.
crow -w README.md glow README.md
fd .md | crow glow README.md
!! to watch files and run the last command.
Pull requests are welcome.