Simple tool to automatically run anything when a watched file changes.
Now includes desktop notifications (tested on Ubuntu) for failures.
Originally written for auto-executing Go builds and tests
go get github.com/jboelter/autoexec
Building Go Source
autoexec -c go -p src -s .go install -v ./...
Testing Go
autoexec -c go -p src -s .go test ./...
Usage
autoexec
-c="": the exec to run
-h=false: display the help
-p="": the path to monitor
-s="": the file suffix to monitor
-v=false: verbose output
Inspired by github.com/ryanslade/goautotest
There are OS-specific limits as to how many watches can be created. See the package "gopkg.in/fsnotify.v1"