summaryrefslogtreecommitdiffstats
path: root/qtip/cli/templates/qpi.j2
diff options
context:
space:
mode:
authorTaseer <taseer94@gmail.com>2017-03-13 21:13:45 +0500
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-03-16 15:57:14 +0000
commit638398e593ab95b8e280a3dafd9e1258dd5560e0 (patch)
tree5510f9078ebd2fb882ec6a517a705ca734dee9e0 /qtip/cli/templates/qpi.j2
parentaf798ce161d0a074823344fafb4984cc6f35ceec (diff)
Implement 'show' command.
- Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed <taseer94@gmail.com> (cherry picked from commit bb5af4b9be1325b61c7f80e71c7d50892ae22956)
Diffstat (limited to 'qtip/cli/templates/qpi.j2')
-rw-r--r--qtip/cli/templates/qpi.j212
1 files changed, 12 insertions, 0 deletions
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 %}
+