/doit_watch

A 'watch' plugin for the Python task manager doit

Primary LanguagePythonMIT LicenseMIT

doit_watch

A watch plugin for the Python task manager doit.

How to use

Run doit watch, or doit watch <TASK>, to run the tasks once if necessary, and then run them again when any of the input files change.

$ doit watch
.  MyTask
-> Watching 324 files for changes...

How to install

To install, add the following to your config files:

# requirements.txt
doit-watch>=0.1.0
# pyproject.toml (if using)
[tool.doit.plugins.command]
watch = "doit_watch:Watch"
# doit.cfg (if using)
[COMMAND]
watch = "doit_watch:Watch"

Credits

I didn't write this plugin myself. This is a fork of the doit-auto1 plugin, and I applied the PR of @bollwyvl and the PR of @jguillon into a new package, with the name that we all agree the command should have.