aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/cli/commands/cmd_qpi.py
diff options
context:
space:
mode:
authorTaseer <taseer94@gmail.com>2017-03-13 21:13:45 +0500
committerTaseer <taseer94@gmail.com>2017-03-14 14:23:31 +0500
commitbb5af4b9be1325b61c7f80e71c7d50892ae22956 (patch)
tree236caabf92576f3a4d9708bc03768340782f09e7 /qtip/cli/commands/cmd_qpi.py
parenta5145885c7a43622f803534ed97890ef9acb852d (diff)
Implement 'show' command.
- Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'qtip/cli/commands/cmd_qpi.py')
-rw-r--r--qtip/cli/commands/cmd_qpi.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtip/cli/commands/cmd_qpi.py b/qtip/cli/commands/cmd_qpi.py
index a12fa983..1f23211e 100644
--- a/qtip/cli/commands/cmd_qpi.py
+++ b/qtip/cli/commands/cmd_qpi.py
@@ -36,7 +36,10 @@ def cmd_list(ctx):
@click.argument('name')
@pass_context
def show(ctx, name):
- pass
+ qpi = QPISpec('{}.yaml'.format(name))
+ cnt = qpi.content
+ output = utils.render('qpi', cnt)
+ click.echo(output)
@cli.command('run', help='Run performance tests for the specified QPI')