angular/aio/tools/transforms/templates/cli/cli-command.template.html
Alan Agius 73693be516 docs: improve grammer in CLI command template (#47891)
Before
```
This command has the following commands:
```

Now
```
This command has the following sub-commands:
```

PR Close #47891
2022-10-28 02:29:07 -07:00

35 lines
1 KiB
HTML

{% import 'lib/cli.html' as cli %}
{% import "../lib/githubLinks.html" as github -%}
<article>
{% include 'include/cli-breadcrumb.html' %}
{% include 'include/cli-header.html' %}
<aio-toc class="embedded"></aio-toc>
<div class="cli-body">
{$ doc.shortDescription | marked $}
{$ cli.renderSyntax(doc) $}
{% if doc.longDescription.length %}
<h2 class="no-anchor">
{$ github.githubLinks(doc.longDescriptionDoc, cliVersionInfo) $}
Description
</h2>
{$ doc.longDescription | marked $}
{% endif%}
{% if doc.subcommands.length %}
<p>This command has the following <a href="#{$ doc.name $}-commands">sub-commands</a>:<p>
<ul>
{% for subcommand in doc.subcommands %}
<li><a class="code-anchor" href="#{$ subcommand.name $}-command">{$ subcommand.name $}</a></li>
{% endfor %}
</ul>
{% endif %}
{$ cli.renderArguments(doc.positionalOptions, 2) $}
{$ cli.renderNamedOptions(doc.namedOptions, 2) $}
{$ cli.renderSubcommands(doc) $}
</div>
</article>