maji is a simple command line tool to watch file changes using polling.
maji [OPTIONS] [<dir>...] -- <command>
<dir> Directories to watch. (default: .)
<command> Command to run when an event fires.
Options:
--dir= Directories to watch. (default: .)
-x, --exclude= Directory/File to ignore.
-h, --help Show this help message
Examples:
$ maji -- make test
$ maji src -x build -- make build
$ maji -- "curl localhost:8080 | jq ."
go get -u github.com/tomill/maji
This command was written as a go version of tokuhirom's perl5 App-watcher. Unlike gomon, this uses simple polling (by radovskyb/watcher) instead of inotify. That is it works with NFS file system.
What does "maji" mean?
"Maji" measn "seriously" in Japanese and "Maji maji" means "watching carefully π". So maji
watches files pretty seriously.
MIT