{%- for section in organized_data -%}

{%- if section.type == 'cog' -%} Cog {%- else -%} Package {%- endif -%} {{ section.name }}

{%- if section.description -%}

{{ section.description }}

{%- endif -%}
{%- for command in section.commands -%}
{#- Logic for Prefix + Name -#} {%- if command.prefixes and command.prefixes is sequence and command.prefixes is not string -%} {{ command.prefixes[0] }}{{- command.names[0] }} {%- elif command.prefixes and command.prefixes is string -%} {{ command.prefixes }}{{- command.names[0] }} {%- elif command.prefixes -%} {#- Dynamic prefix - try to get first prefix from app -#} {%- if app.prefixes and app.prefixes is sequence and app.prefixes is not string -%} {{ app.prefixes[0] }}{{- command.names[0] }} {%- elif app.prefixes and app.prefixes is string -%} {{ app.prefixes }}{{- command.names[0] }} {%- else -%} !{{- command.names[0] }} {%- endif -%} {%- else -%} {{- command.names[0] }} {%- endif -%} {%- for text_argument in command.text_arguments -%} {%- if text_argument.argument_settings.default is not none or text_argument.argument_settings.default_factory is not none -%} [{{ text_argument.argument_name }}] {%- else -%} <{{ text_argument.argument_name }}> {%- endif -%} {%- endfor -%} #
{%- if command._autodoc_brief is defined and command._autodoc_brief -%}
{{ command._autodoc_brief }}
{%- endif -%} {%- if command._autodoc_description is defined and command._autodoc_description -%}
Описание
{{ command._autodoc_description }}
{%- endif -%} {%- if command._autodoc_full_description is defined and command._autodoc_full_description -%}
Полное описание
{{ command._autodoc_full_description }}
{%- endif -%} {%- if command.text_arguments -%}
Параметры
{%- for text_argument in command.text_arguments -%}
{%- if text_argument.argument_settings.default is not none or text_argument.argument_settings.default_factory is not none -%} [{{ text_argument.argument_name }}] {%- else -%} <{{ text_argument.argument_name }}> {%- endif -%}

{{ text_argument.argument_settings.description or text_argument.cutter.gen_doc().capitalize() }}

{%- endfor -%}
{%- endif -%} {%- if command.names|length >= 2 or (command.prefixes is sequence and command.prefixes is not string and command.prefixes|length >= 2) -%}
Альтернативные вызовы
{%- if command.prefixes is sequence and command.prefixes is not string and command.prefixes|length >= 2 -%}

Альтернативные префиксы

    {%- for alt_prefix in command.prefixes[1:] -%}
  • {{ alt_prefix }}
  • {%- endfor -%}
{%- elif command.prefixes and command.prefixes is not sequence -%}

Префикс

Динамический префикс (определяется функцией)

{%- endif -%} {%- if command.names|length >= 2 -%}

Альтернативные имена

    {%- for alt_name in command.names[1:] -%}
  • {{ alt_name }}
  • {%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}