summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
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():