Skip to content

Commit

Permalink
Merge pull request EVOLVED-5G#35 from EVOLVED-5G/command_description
Browse files Browse the repository at this point in the history
Add description in the command
  • Loading branch information
rimarala authored Nov 4, 2021
2 parents bafe519 + efcb85d commit 04af1c8
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 04af1c8

Please sign in to comment.