Compare commits

..

2 Commits

Author SHA1 Message Date
Sebastian Rust
c5e3eea64d added: aur task 2022-07-10 12:50:36 +02:00
Sebastian Rust
cf8bb5ac74 added: scrub 2022-07-10 12:48:59 +02:00
3 changed files with 13 additions and 0 deletions

3
.gitmodules vendored
View File

@@ -46,3 +46,6 @@
[submodule "plog"]
path = plog
url = https://aur.archlinux.org/plog.git
[submodule "scrub"]
path = scrub
url = https://aur.archlinux.org/scrub.git

1
scrub Submodule

Submodule scrub added at b596b6aca4

View File

@@ -1,8 +1,17 @@
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")