pub struct CallGraphCommand {
pub root: Option<String>,
pub ns_prefix: Option<String>,
pub include_core: bool,
pub max_depth: Option<usize>,
pub show_unused: bool,
pub format: String,
pub counts: bool,
pub sort: Option<String>,
pub diff: Option<String>,
pub effects: bool,
pub detail: Option<String>,
pub color: Option<bool>,
}Expand description
analyze call tree structure from entry point; --counts counts call occurrences, --diff <ref> compares against a Git ref, --effects builds the State/Transform/Effect graph
Fields§
§root: Option<String>directly specify root definition to analyze (format: ns/def). If omitted, uses init-fn from config
ns_prefix: Option<String>only show definitions whose namespace starts with this prefix
include_core: boolinclude core/library calls in the output
max_depth: Option<usize>maximum depth to traverse (default: 0 = unlimited, or 2 with –effects)
show_unused: boolshow definitions unreachable from the selected entry (may include external entry points)
format: Stringoutput format: human (default, LLM-friendly; legacy aliases text, tree), edn, or json; --diff supports human only
counts: boolcount call occurrences per definition instead of printing the tree
sort: Option<String>with –counts, sort by “count” (default, descending) or “name”
diff: Option<String>compare the call graph against a Git ref (e.g. HEAD~1, main, or a commit SHA) and annotate code changes
effects: booldecompose entry into a State / Transform / Effect dependency graph instead of a plain call tree
detail: Option<String>with –effects, transform compression level: summary (default), full, or minimal
color: Option<bool>with –effects, enable ANSI colors in tree output (default: true; pass false to disable)