cli_doc 0.1.2

Documentation generator for CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div id="node-c{{id}}" class="tree-item level-{% if depth > 2 %}2{% else %}{{depth}}{% endif %} {% if depth == 0 %}selected expanded{% endif %}" onclick="selectCommand('c{{ id }}', this)" data-command="{{ id }}">
    {%- if !subcommands.is_empty() -%}
    <div id="triangle-c{{ id }}" class="expand-triangle {% if depth == 0 %}expanded{% endif %}" onclick='toggleEvent(event, "c{{ id }}")'></div>
    <div class="command-text">{{ name }}</div>
    {%- else -%}
    <div class="command-text non-expanding-text">{{ name }}</div>
    {%- endif -%}

</div>
<div class="tree-item-children {% if depth > 0 %}hidden{% endif %}">
{% for child in subcommands %}
    {{ child.render().unwrap() }}
{% endfor %}
</div>