Files
repo/tasks.py
Sebastian Rust c5e3eea64d added: aur task
2022-07-10 12:50:36 +02:00

17 lines
353 B
Python

from invoke import task
@task
def aur(c, name):
url = f"https://aur.archlinux.org/{name}.git"
add(c, url, name)
@task
def add(c, url, name=None):
if name is None:
name = url
c.run(f"git submodule add {url}")
c.run(f"git commit -am 'added: {name}'")
@task
def update(c):
c.run("git pull && git submodule update --init")