Skip to main content

render_introspect_document

Function render_introspect_document 

Source
pub fn render_introspect_document(
    command: &Command,
    registry: &CommandRegistry,
) -> String
Expand description

Serialize an IntrospectDocument as compact JSON.

This is the pure rendering step --introspect performs before exit, split out so binaries and tests can validate the emitted JSON without spawning a subprocess.