Skip to content

Commit 8004050

Browse files
committed
WIP: reference: show aliases for commands
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 0035868 commit 8004050

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_includes/cli.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ your client and daemon API versions.
7171
{% endcapture %}{{ command-orchestrator }}
7272

7373

74+
{% if controller_data.aliases %}
75+
{% assign aliases = controller_data.aliases | split: ', ' %}
76+
### Aliases
77+
78+
The following commands are equivalent and redirect here:
79+
{% for alias in aliases %}
80+
{%- assign fname = alias | remove_first: "docker " | replace: " ", "_" -%}
81+
- [{{ alias }}](/engine/reference/commandline/{{ fname }}/)
82+
{% endfor -%}
83+
{% endif %}
7484
{% if controller_data.usage %}
7585

7686
## Usage

0 commit comments

Comments
 (0)