From 81f69b6789043dd0087c4ae9a3781656dc766a5a Mon Sep 17 00:00:00 2001 From: nanjiangwill Date: Fri, 20 Sep 2024 00:32:47 -0400 Subject: [PATCH] add highlight for save and build --- commit0/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commit0/cli.py b/commit0/cli.py index 688bb4d..31434c6 100644 --- a/commit0/cli.py +++ b/commit0/cli.py @@ -167,7 +167,8 @@ def test( @app.command() def evaluate( repo_split: str = typer.Argument( - ..., help=f"Split of repositories, one of {SPLIT.keys()}" + ..., + help=f"Split of repositories, one of {', '.join(highlight(key, Colors.ORANGE) for key in SPLIT.keys())}", ), branch: Union[str, None] = typer.Option( None, help="Branch to evaluate (branch MUST be provided or use --reference)" @@ -233,7 +234,8 @@ def lint( @app.command() def save( repo_split: str = typer.Argument( - ..., help=f"Split of the repository, one of {SPLIT.keys()}" + ..., + help=f"Split of the repository, one of {', '.join(highlight(key, Colors.ORANGE) for key in SPLIT.keys())}", ), owner: str = typer.Argument(..., help="Owner of the repository"), branch: str = typer.Argument(..., help="Branch to save"),