Skip to main content

Module render

Module render 

Source
Expand description

Human text rendering for the read-only structural verbs, shared by the CLI (cli/src/main.rs) and the explore inner toolset (core::explore::toolset) so both faces emit identical output. See ADR 0003.

Each function reproduces the CLI’s stdout println! block byte-for-byte (one line + \n per row). The CLI keeps its own --json branch and its eprintln! summaries; those stay CLI-only and are not part of this surface.

Functions§

callers
grove callersfile:line:col, enclosing function, provenance tag (S=structural / T=textual), and the call-site text.
definition
grove definition — leads with file:line:col so directory-wide hits that span files are locatable without a follow-up symbols.
map
grove map — each file’s definitions with their outgoing references.
outline
grove outline — one line per definition (kind, name, owner, line:col, sig).
source
grove source — the symbol’s source body. The CLI’s “also matched” hint goes to stderr, so it is not part of captured stdout and not rendered here.
symbols
grove symbols — a def/ref mark, kind, name, and the stable symbol id.