From df5e80d63cff8acce2b510e1f2be07a7e1369415 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 10 Jun 2020 00:12:21 +0100 Subject: branchsetup : new generic module, drop old branchinject, branchmaster && branchnext modules; plug the new module into the new cli client -> works magic --- src/frontend/cli/sisyphus-cli.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/frontend/cli') 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(): -- cgit v1.2.3