From 232ab64c09358772ae7201df059eb9d77e653cf6 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Tue, 31 Jan 2017 18:52:24 -0800 Subject: [PATCH] Support for related commands in CLI --- _includes/cli.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_includes/cli.md b/_includes/cli.md index 4ffe339c5c..1fecee0f98 100644 --- a/_includes/cli.md +++ b/_includes/cli.md @@ -58,6 +58,16 @@ {% endif %} +{% if site.data[page.datafolder][page.datafile].pname != "docker" %} + +## Related commands + +| Command | Description | +| ------- | ----------- |{% for command in site.data[page.datafolder][parentdatafile].cname %}{% capture dataFileName %}{{ command | strip | replace: " ","_" }}{% endcapture %} +| [{{ command }}]({{ dataFileName | replace: "docker_","" }}/) | {{ site.data[page.datafolder][dataFileName].short }} |{% endfor %} + +{% endif %} + {% if site.data[page.datafolder][page.datafile].long != site.data[page.datafolder][page.datafile].short %} ## Extended description