diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2017-06-06 06:17:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-06 06:17:52 +0000 |
commit | 0dffb7f523b9681533517b61436e9010d67def47 (patch) | |
tree | 708172056280bfc096476268e05654c0fc8a6e8e /qtip/cli/commands/cmd_report.py | |
parent | 0ce21bc2fc83faa3462de9fd52360cb0d6fae71d (diff) | |
parent | 30f07d0e8e2d82e613155e218d92f126ad1316bf (diff) |
Merge "Refactor Cli"
Diffstat (limited to 'qtip/cli/commands/cmd_report.py')
-rw-r--r-- | qtip/cli/commands/cmd_report.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/qtip/cli/commands/cmd_report.py b/qtip/cli/commands/cmd_report.py index ebc0ef77..4176fd90 100644 --- a/qtip/cli/commands/cmd_report.py +++ b/qtip/cli/commands/cmd_report.py @@ -9,15 +9,11 @@ import click -from qtip.cli.entry import Context from qtip.reporter.console import ConsoleReporter -pass_context = click.make_pass_decorator(Context, ensure=False) - @click.group() -@pass_context -def cli(ctx): +def cli(): """ View QTIP results""" pass @@ -25,8 +21,7 @@ def cli(ctx): @cli.command('show') @click.argument('metric') @click.option('-p', '--path', help='Path to result directory') -@pass_context -def show(ctx, metric, path): +def show(metric, path): reporter = ConsoleReporter({}) report = reporter.render(metric, path) click.echo(report) |