From 638398e593ab95b8e280a3dafd9e1258dd5560e0 Mon Sep 17 00:00:00 2001 From: Taseer Date: Mon, 13 Mar 2017 21:13:45 +0500 Subject: Implement 'show' command. - Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed (cherry picked from commit bb5af4b9be1325b61c7f80e71c7d50892ae22956) --- qtip/cli/commands/cmd_plan.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qtip/cli/commands/cmd_plan.py') diff --git a/qtip/cli/commands/cmd_plan.py b/qtip/cli/commands/cmd_plan.py index 2f07965d..90773491 100644 --- a/qtip/cli/commands/cmd_plan.py +++ b/qtip/cli/commands/cmd_plan.py @@ -43,7 +43,10 @@ def list(ctx): @click.argument('name') @pass_context def show(ctx, name): - pass + plan = Plan('{}.yaml'.format(name)) + cnt = plan.content + output = utils.render('plan', cnt) + click.echo(output) @cli.command('run', help='Execute a Plan') -- cgit 1.2.3-korg