added: pkg helper

This commit is contained in:
Sebastian Rust
2022-07-10 12:46:55 +02:00
parent 25ad8e668e
commit 86b137aa6b

8
tasks.py Normal file
View File

@@ -0,0 +1,8 @@
from invoke import task
@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}'")