{%- if kind == "summary" -%}
[header]dodot probe[/header]
[dim]data_dir:[/dim] {{ data_dir }}
[header]Subcommands:[/header]
{% for sub in available %} [pack-name]{{ sub.name | col(20) }}[/pack-name] [description]{{ sub.description }}[/description]
{% endfor %}
{%- elif kind == "deployment-map" -%}
[header]Deployment map[/header]
[dim]file:[/dim] {{ map_path }}
{% if entries %} [dim]{{ "pack" | col(16) }} {{ "handler" | col(10) }} {{ "kind" | col(10) }} {{ "source" | col(40) }} datastore[/dim]
{% for e in entries %} [pack-name]{{ e.pack | col(16) }}[/pack-name] [handler-symbol]{{ e.handler | col(10) }}[/handler-symbol] [description]{{ e.kind | col(10) }}[/description] {{ e.source | col(40) }} [dim]{{ e.datastore }}[/dim]
{% endfor %}{% else %} [dim](nothing deployed — run `dodot up` first)[/dim]
{% endif %}
{%- elif kind == "show-data-dir" -%}
[header]Data directory[/header]
[dim]root:[/dim] {{ data_dir }}
[dim]nodes:[/dim] {{ total_nodes }} [dim]size:[/dim] {{ total_size }} B
{% for line in lines %}{{ line.prefix }}{{ line.name }}{% if line.annotation %} [dim]{{ line.annotation }}[/dim]{% endif %}
{% endfor %}
{%- elif kind == "shell-init" -%}
[header]Shell-init profile[/header]
{% if has_profile %} [dim]run:[/dim] {{ filename }}
[dim]shell:[/dim] {{ shell }}
{% for g in groups %} [pack-name]{{ g.pack }}[/pack-name] [description]/[/description] [handler-symbol]{{ g.handler }}[/handler-symbol] [dim]({{ g.group_total_label }})[/dim]
{% for r in g.rows %} {{ r.target | col(36) }} [{{ r.status_class }}]{{ r.duration_label | col(10) }}[/{{ r.status_class }}]{% if r.exit_status != 0 %} [error]exit {{ r.exit_status }}[/error]{% endif %}
{% endfor %}{% endfor %}
[dim]──[/dim]
user-sourced total [deployed]{{ user_total_us }} µs[/deployed]
dodot framing [dim]{{ framing_us }} µs[/dim]
grand total [header]{{ total_us }} µs[/header]
{% else %}{% if profiling_enabled %} [dim](no profile yet — open a new shell that sources `dodot-init.sh`,[/dim]
[dim] then re-run `dodot probe shell-init`)[/dim]
{% else %} [dim](profiling is disabled in config — set [profiling] enabled = true,[/dim]
[dim] run `dodot up`, then start a new shell)[/dim]
{% endif %}{% endif %}
[dim]profiles dir:[/dim] {{ profiles_dir }}
[dim]for intra-file profiling, see `zprof` (zsh) or PS4 tracing (bash).[/dim]
{%- endif -%}