Watch a file or folder for changes and execute a custom command.
go-fswatcher -path some-file.txt -command "some-command"
go-fswatcher -path some-folder -command "some-command"
If you want to watch for changes recursivly you can add the recurse
option:
go-fswatcher -path some-folder -recurse -command "some-command"
Build your go application everytime a file changes in your package directory.
go-fswatcher -path $GOPATH/src/github.com/andreaskoch/allmark -recurse -command "go install"
- github.com/andreaskoch/go-fswatch for monitoring the filesystem for changes
If you have an idea how to make this little tool better please send me a message or a pull request.
All contributions are welcome.