{% extends "base.html" %} {% from 'partials/navigation-components.html' import breadcrumbs with context %} {# CLI Reference List Template Used for CLI documentation section indexes (command overview). Shows commands in a clean, scannable reference layout. Context variables: - section: Section object with CLI commands - posts: List of command pages - subsections: List of command group subsections - content_type: 'cli-reference' #} {% block content %} {# Three-column documentation layout #}
{# Left Sidebar: CLI Navigation #} {# Main Content #}
{# Breadcrumbs #} {{ breadcrumbs(section if section is defined else page) }}

⌨️ {{ (section.title if section else title) | default('CLI Reference') | upper }}

{% if section and section.metadata.get('description', '') %}

{{ section.metadata.get('description', '') }}

{% else %}

Command-line interface reference and documentation

{% endif %}
{# Quick Start Section - if index page has content, show it #} {% if section is defined and section and section.index_page and section.index_page.parsed_ast %}
{{ section.index_page.parsed_ast | safe }}
{% endif %} {# Commands Section #} {% if posts or subsections %}
{# Show all direct commands (pages in this section) #} {% if posts %}

Commands

{% for command in posts %}
{{ command.title }} {% if command.metadata.get('description', '') %} {{ command.metadata.get('description', '') }} {% elif command.content %} {{ command.content | striptags | truncate(120) }} {% endif %} {% if command.metadata.get('usage') %} {{ command.metadata.get('usage') }} {% endif %}
{% endfor %}
{% endif %} {# Show command groups (subsections) #} {% if subsections %}

Command Groups

{% for subsection in subsections %}
{{ subsection.title }} {% if subsection.metadata.get('description', '') %} {{ subsection.metadata.get('description', '') }} {% endif %} {% if subsection.regular_pages %} {# Count only non-index pages #} {% set content_pages = subsection.regular_pages | rejectattr('url', 'equalto', subsection.index_page.url if subsection.index_page else '') | list %} {% if content_pages %} {{ content_pages | length }} command{{ 's' if content_pages | length != 1 }} {% endif %} {% endif %}
{% endfor %}
{% endif %}
{% else %} {# Empty state #}

No CLI documentation available yet.

{% endif %} {# Getting Help Section #}

Getting Help

# Show help for main command
{{ (section.metadata.cli_name if section is defined and section else 'command') | default('command') }} --help

# Show help for specific command
{{ (section.metadata.cli_name if section is defined and section else 'command') | default('command') }} COMMAND --help
{# NO PAGINATION - Reference docs should not be paginated #}
{# Right Sidebar: Optional space for future TOC or related content #}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %} {# Sidebar toggle functionality is handled by interactive.js #}