From bb5af4b9be1325b61c7f80e71c7d50892ae22956 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 --- qtip/cli/templates/metric.j2 | 6 ++++++ qtip/cli/templates/plan.j2 | 2 ++ qtip/cli/templates/qpi.j2 | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 qtip/cli/templates/metric.j2 create mode 100644 qtip/cli/templates/plan.j2 create mode 100644 qtip/cli/templates/qpi.j2 (limited to 'qtip/cli/templates') diff --git a/qtip/cli/templates/metric.j2 b/qtip/cli/templates/metric.j2 new file mode 100644 index 00000000..126587f9 --- /dev/null +++ b/qtip/cli/templates/metric.j2 @@ -0,0 +1,6 @@ +Name: {{ name }} +Description: {{ description }} +Workloads: +{% for wl in workloads %} + {{ wl }} +{% endfor %} diff --git a/qtip/cli/templates/plan.j2 b/qtip/cli/templates/plan.j2 new file mode 100644 index 00000000..c9adccc8 --- /dev/null +++ b/qtip/cli/templates/plan.j2 @@ -0,0 +1,2 @@ +Name: {{ name }} +Description: {{ description }} diff --git a/qtip/cli/templates/qpi.j2 b/qtip/cli/templates/qpi.j2 new file mode 100644 index 00000000..cc85f10d --- /dev/null +++ b/qtip/cli/templates/qpi.j2 @@ -0,0 +1,12 @@ +Name: {{ title }} +Description: {{ description }} +{% for section in sections %} + Name: {{ section.name }} + Weight: {{ section.weight }} + Formula: {{ section.formula }} + Metrics: + {% for metric in section.metrics %} + {{ metric }} + {% endfor %} +{% endfor %} + -- cgit 1.2.3-korg