diff options
author | zhihui wu <zhihui.wu2006+zte@gmail.com> | 2017-03-20 01:17:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-20 01:17:01 +0000 |
commit | 58e0a7a19c009b3de9fb69a5475cf8e8f6e0e494 (patch) | |
tree | 4dfbb8d32e4c815641e1b402dd6f530528002c77 /qtip/cli/commands/cmd_report.py | |
parent | 6694910aae48dd42e7c777e587c32e03cacd400c (diff) | |
parent | 04e50e57819bdf40a2fd7abdd3fc7be798771e0b (diff) |
Merge "Refactor reporter module"
Diffstat (limited to 'qtip/cli/commands/cmd_report.py')
-rw-r--r-- | qtip/cli/commands/cmd_report.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_report.py b/qtip/cli/commands/cmd_report.py index c780e847..cb9c70b6 100644 --- a/qtip/cli/commands/cmd_report.py +++ b/qtip/cli/commands/cmd_report.py @@ -10,6 +10,7 @@ import click from qtip.cli.entry import Context +from qtip.reporter.console import ConsoleReporter pass_context = click.make_pass_decorator(Context, ensure=False) @@ -22,6 +23,9 @@ def cli(ctx): @cli.command('show') +@click.argument('metric') @pass_context -def show(ctx): - pass +def show(ctx, metric): + reporter = ConsoleReporter({}) + report = reporter.render(metric) + click.echo(report) |