A watch plugin for the Python task manager doit.
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...
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"
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.