aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/cli
diff options
context:
space:
mode:
authorzhihui wu <zhihui.wu2006+zte@gmail.com>2017-03-20 01:17:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-20 01:17:01 +0000
commit58e0a7a19c009b3de9fb69a5475cf8e8f6e0e494 (patch)
tree4dfbb8d32e4c815641e1b402dd6f530528002c77 /qtip/cli
parent6694910aae48dd42e7c777e587c32e03cacd400c (diff)
parent04e50e57819bdf40a2fd7abdd3fc7be798771e0b (diff)
Merge "Refactor reporter module"
Diffstat (limited to 'qtip/cli')
-rw-r--r--qtip/cli/commands/cmd_report.py8
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)