summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-10 00:12:21 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-10 00:12:21 +0100
commitdf5e80d63cff8acce2b510e1f2be07a7e1369415 (patch)
tree85f3127fb5f533719008edc98c97e2bfcb76ac9a /src/frontend
parentc76a29a71d16e9ed512a22945d6e6b77b0d21fb6 (diff)
branchsetup : new generic module, drop old branchinject, branchmaster && branchnext modules; plug the new module into the new cli client -> works magic
Diffstat (limited to 'src/frontend')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 7488922..ee9bd9f 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -4,6 +4,9 @@ import sisyphus
import typer
from typing import List
+sisyphus.check.update()
+sisyphus.setjobs.start.__wrapped__() # undecorate
+
app = typer.Typer()
mirrorSetup = typer.Typer()
app.add_typer(mirrorSetup, name="mirror", help='List/Set the active binary repository mirror.')
@@ -86,15 +89,15 @@ def branch(branch: str = typer.Argument(...), remote: str = typer.Option(...)):
"""Pull the branch 'BRANCH' of the Portage tree, Redcore overlay and Portage configs,
using 'REMOTE' git repositories.
- 'BRANCH' can be one of the following : master, next (default is master)
+ 'BRANCH' can be one of the following : master, next
- 'REMOTE' can be one of the following : gitlab, pagure (default is pagure)
+ 'REMOTE' can be one of the following : gitlab, pagure
* Examples:
- 'branch master --remote gitlab' will pull the branch 'master' from gitlab.com
+ 'branch master --remote=gitlab' will pull the branch 'master' from gitlab.com
- 'branch next --remote pagure' will pull the branch 'next' from pagure.io
+ 'branch next --remote=pagure' will pull the branch 'next' from pagure.io
!!! WARNING !!!
@@ -108,7 +111,7 @@ def branch(branch: str = typer.Argument(...), remote: str = typer.Option(...)):
* Examples : 'sisyphus mirror set 2' or 'sisyphus mirror set 8'
"""
- typer.echo(f"Injecting {branch} branch from {remote} repository")
+ sisyphus.branchsetup.start(branch, remote)
@app.command("sysinfo")
def sysinfo():