mirror of
https://github.com/dtomlinson91/tembo.git
synced 2025-12-22 06:05:44 +00:00
adding duty
This commit is contained in:
16
duties.py
Normal file
16
duties.py
Normal 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}",
|
||||
)
|
||||
Reference in New Issue
Block a user