adding duty

This commit is contained in:
2021-10-26 00:04:04 +01:00
parent 557eec305d
commit 5a63aef81e
4 changed files with 100 additions and 5 deletions

16
duties.py Normal file
View File

@@ -0,0 +1,16 @@
from duty import duty
@duty
def test(ctx):
ctx.run(["echo", "test"], title="test command")
@duty
def update_deps(ctx, dry: bool = True):
# duty update_deps dry=False
dry_run = "--dry-run" if dry else ""
ctx.run(
["poetry", "update", dry_run],
title=f"Updating poetry deps {dry_run}",
)