add default task

This commit is contained in:
Daylin Morgan 2024-10-22 13:25:53 -05:00
parent 3b0292862d
commit 670583859a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -8,11 +8,11 @@ if not (
_src.parent.mkdir(exist_ok=True)
_src.write_text(_r.read().decode())
from swydd import task, sub, cli
from swydd import task, sub, cli, ctx
@task
def build(args: str = ""):
"""build the image"""
sub("podman build . -t daylinbox " + args)
def build():
"""build the image (forwards positioanl args)"""
sub("podman build . -t daylinbox " + " ".join(ctx.rest))
cli()
cli("build")