~ehamberg/fswatcher

A simple program that watches a file or a directory and runs a given command whenever the file or a file within the directory is changed.
Add sr.ht build manifests
Update cabal file and dependencies

clone

read-only
https://git.sr.ht/~ehamberg/fswatcher
read/write
git@git.sr.ht:~ehamberg/fswatcher

You can also use your local clone with git send-email.

                 ___               _       _
                |  _|___ _ _ _ ___| |_ ___| |_ ___ ___
                |  _|_ -| | | | .'|  _|  _|   | -_|  _|
                |_| |___|_____|__,|_| |___|_|_|___|_|

builds.sr.ht status hackage release

fswatcher monitors a file or a directory for changes and runs a given command when the file is modified. If monitoring a directory, it runs the specified command when any file in the directory tree is modified.

This is a really thin layer on top of the fsnotify library. It works on Linux, OS X and other BSDs, and Windows (untested).

Usage:

fswatcher --path <file/directory to watch> <command to run> [arguments to command]
Do not follow this link