Skip to content

Commit

Permalink
Add description in the command
Browse files Browse the repository at this point in the history
  • Loading branch information
rimarala committed Nov 4, 2021
1 parent bafe519 commit efcb85d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions evolved5g/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit efcb85d

Please sign in to comment.