pub struct QueryDefCommand {
pub target: String,
pub format: String,
pub summary: bool,
pub only: Option<String>,
pub chunk_target_nodes: usize,
pub chunk_max_nodes: usize,
pub chunk_trigger_nodes: usize,
pub chunk_trigger_bytes: usize,
pub raw: bool,
}Expand description
read a definition’s full code, summary (--summary), examples/tests (--only), or builtin metadata
Fields§
§target: Stringtarget in format “namespace/definition”
format: Stringoutput format: Markdown-compatible human (default), edn, json, or cirru (quote $ <definition> for edit def --overwrite, or with --only examples one quote $ <example> per example without JSON AST for edit meta --examples)
summary: boolshow compact signature/doc/schema/cases/counts preview without full body
only: Option<String>show only one section of the definition: examples or tests
chunk_target_nodes: usizepreferred nodes per display fragment when large expressions are chunked
chunk_max_nodes: usizestop recursive chunk splitting once fragments fall below this node count
chunk_trigger_nodes: usizeonly enable chunked display when total expression nodes reach this threshold
chunk_trigger_bytes: usizeonly enable chunked display when the formatted definition reaches this many bytes
raw: boolnon-chunked Markdown output; use –format cirru for source that can be written back