pawamoy / duty

A simple task runner.

Home Page:https://pawamoy.github.io/duty/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duty

ci documentation pypi version gitpod gitter

A simple task runner.

Inspired by Invoke.

demo

Installation

With pip:

pip install duty

With pipx:

python3.8 -m pip install --user pipx
pipx install duty

Quick start

Create 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 docs

See the Usage section in the documentation for more examples.

Also see "Why choosing duty over...".

About

A simple task runner.

https://pawamoy.github.io/duty/

License:ISC License


Languages

Language:Python 98.2%Language:Shell 1.6%Language:Makefile 0.1%Language:Dockerfile 0.0%