From fc46610f316eb45b017d8f054132f01d4c7c37d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Dec 2022 19:58:09 +0000 Subject: add github as a remote option --- src/frontend/cli/sisyphus-cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/frontend/cli') diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index 4a514c8..93963dd 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -229,20 +229,23 @@ class Branch(str, Enum): next = 'next' class Remote(str, Enum): + github = 'github' gitlab = 'gitlab' pagure = 'pagure' @app.command("branch") -def branch(branch: Branch = typer.Argument(...), remote: Remote = typer.Option(Remote.pagure, "--remote", "-r")): +def branch(branch: Branch = typer.Argument(...), remote: Remote = typer.Option(Remote.gitlab, "--remote", "-r")): """Pull the selected branch of the Portage tree, Redcore overlay and Portage configs. The remote can be selected by using the --remote option. '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 : github, gitlab, pagure (default is gitlab) * Examples: + branch next --remote=github # pull the branch 'next' from github.com + branch master --remote=gitlab # pull the branch 'master' from gitlab.com branch next --remote=pagure # pull the branch 'next' from pagure.io -- cgit v1.2.3