A simple task runner.
Inspired by Invoke.
With pip:
pip install dutyWith pipx:
python3.7 -m pip install --user pipx
pipx install dutyCreate a duties.py file at the root of your repository.
from duty import duty
@duty
def docs(ctx):
ctx.run("mkdocs build", title="Building documentation")You can now use the command line tool to run it:
duty docsSee the Usage section in the documentation for more examples.