From efcb85d6c211f3121634377e10397d31198c8f1b Mon Sep 17 00:00:00 2001 From: rimarala Date: Thu, 4 Nov 2021 13:05:30 +0000 Subject: [PATCH] Add description in the command --- evolved5g/cli.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/evolved5g/cli.py b/evolved5g/cli.py index 08b4080..3e9fcf1 100644 --- a/evolved5g/cli.py +++ b/evolved5g/cli.py @@ -25,18 +25,21 @@ def generate(ctx,no_input, repo_name, package_name, template): ctx.obj["helper"].generate(no_input, repo_name, package_name, template) @cli.command() +@click.option('--no-input', type=bool, is_flag=True, + help='Enables the absence of CLI prompts during pipeline run .', default=False) @click.option('--mode',type=click.Choice(['build', 'deploy','destroy'], case_sensitive=False)) @click.option('--repo',type=str, help='Enter repo name') + @click.pass_context def run_pipeline(ctx, mode, repo): - """ - """ + """Launch a pipeline (build, deploy or destroy)""" ctx.obj["helper"].run_pipeline(mode,repo) @cli.command() +@click.option('--no-input', type=bool, is_flag=True, + help='Enables the absence of CLI prompts during pipeline check.', default=False) @click.option('--id',type=int, help='Enter pipeline id') @click.pass_context def check_pipeline(ctx, id): - """ - """ + """Check the status of a pipeline""" ctx.obj["helper"].check_pipeline(id)