caretaker 0.1.3

A simple, configurable filesystem watcher
caretaker-0.1.3 is not a library.

caretaker

Build status Crates.io status

A simple tool that loads a list of paths to watch from a TOML file.

[[watch]]
name = "print hello"
path = "src"
command = "echo \"hello world\""

[[watch]]
name = "compile sass"
path = "sass"
command = "sassc -t compressed sass/style.scss static/style.css"

On a change in the path, it executes the command. Directories are watched recursively.

Using notify crate, which provides efficient event handling support for the most operating systems (apart from BSD).

Installing

cargo install caretaker

Running

Initialising with a dummy .watch.toml file:

caretaker init

Watching:

caretaker

You can also pass another file to load the config from via the -w option.

License

MIT