Skip to main content

Module cli_args

Module cli_args 

Source

Structs§

AnalyzeCommand
analyze code structure, type-debt views, and helpers (call-graph, program-diff, weak-types, check-examples, verify)
CallGraphCommand
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
CallGraphDiffCommand
options of analyze call-graph --diff <ref>, normalized from CallGraphCommand
CheckExamplesCommand
check examples in namespace
CheckPublicCommand
Options of the public-definition check that --check-only --ns runs.
CheckTypesCommand
Options of the type-coverage view that analyze weak-types --only coverage runs.
CirruCommand
Cirru syntax tools (parse, format, edn)
CirruFormatCommand
format JSON to Cirru code
CirruParseCommand
parse Cirru code to JSON
CirruParseEdnCommand
parse Cirru EDN to JSON
ConfigAddEntryCommand
create a named entry; without –from, –mode, –init-fn and –reload-fn are required
ConfigAddModuleCommand
add a module path to an entry
ConfigCommand
manage project configuration
ConfigModulesCommand
list modules included in the project
ConfigRmModuleCommand
remove a module path from an entry
ConfigRmTypeSlotCommand
remove an entry-level type-slot binding
ConfigSetCommand
set a configuration key (package, mode, target, init-fn, reload-fn, description, feature-policy.); use caps version for project versions
ConfigSetTypeSlotCommand
bind a type slot to a full namespace/definition path
ConfigShowCommand
show project configuration values and entries
ConfigTypeSlotsCommand
list entry-level type-slot bindings
ConfigUnsetCommand
unset target, or remove a named entry with an explicit –entry
CountCallsCommand
options of analyze call-graph --counts, normalized from CallGraphCommand
CursorApplyCommand
apply a structural tree operation to the active cursor without repeating target or path
CursorClearCommand
remove the current virtual cursor
CursorCommand
maintain the project-local virtual tree cursor
CursorMoveCommand
move the virtual cursor: parent, child [INDEX] [–last], next, prev, forward, backward, or back
CursorSetCommand
set the virtual cursor to a definition tree path
CursorShowCommand
validate and display the current virtual cursor
DeprecatedCommand
options of analyze weak-types --only deprecated-call, normalized from WeakTypesCommand
DocsAgentsCommand
read the embedded Agents guide, compact mutation contract, or refreshed remote guide
DocsCheckMdCommand
check ```cirru code blocks in a markdown file via eval
DocsCommand
documentation tools for calcit guidebook and installed module docs
DocsFormatMdCommand
format fenced ```cirru code blocks in a markdown file
DocsListCommand
list available files in calcit guidebook or one installed module
DocsReadCommand
read markdown content from calcit guidebook by default, or from one installed module with –module
DocsRemoteLibsCommand
browse remote library registry and read remote library docs
DocsScopesCommand
list available doc scopes (calcit and installed modules)
DocsSearchCommand
search calcit guidebook by default, or switch to one installed module with –module
DocsSectionsCommand
list markdown section headings in one file
DynamicMethodsCommand
options of analyze weak-types --only dynamic-method, normalized from WeakTypesCommand
EditAddImportCommand
add a single import rule to namespace (input via –file, –code, or pipe via stdin)
EditAddNsCommand
add a new namespace (optional ns syntax via –file, –code, or stdin)
EditAddTestCommand
add a named test to a definition (input via –file, –code, or pipe via stdin)
EditCommand
coarse-grained code editing (namespaces, definitions, metadata). For internal structural changes within definitions, use the tree command.
EditDefCommand
add a new definition (input via –file, –code, or pipe via stdin)
EditFfiCommand
update optional host FFI metadata stored on a CodeEntry
EditFormatCommand
rewrite target snapshot file in canonical format
EditImportsCommand
update namespace imports — replaces all (input via –file, –code, or pipe via stdin)
EditMergeCommand
three-way merge another Snapshot version into this one per namespace and definition; for Git use merge.calcit.driver = calcit %A edit merge --base %O --theirs %B
EditMetaCommand
update definition metadata (doc, tags, examples, tests removals)
EditMvDefCommand
move a definition to another namespace or rename it
EditNsCommand
write back the %{} 'FileEntry data from query ns <ns> --format cirru: validate it with the Snapshot loader, compare per definition, and write only added or changed definitions (input via –file, –code, or pipe via stdin)
EditRenameCommand
rename a definition within its namespace (no overwrite)
EditRmDefCommand
delete a definition
EditRmImportCommand
remove an import rule from namespace
EditRmNsCommand
delete a namespace
EditScaffoldCommand
preview or atomically create a definition-graph architecture scaffold
EditSchemaCommand
update definition schema (input via –file, –code, or pipe via stdin; validates structure before writing)
EditSplitDefCommand
extract a sub-expression into a new definition and replace the original location with the new name
EditTransactionCommand
apply multiple existing mutating commands atomically (input via –file, –code, or stdin)
EffectsGraphCommand
options of analyze call-graph --effects, normalized from CallGraphCommand
EmitIrCommand
diagnostic compiler output; not an application execution target
EmitJsCommand
emit JavaScript rather than interpreting
EmitWasiCommand
emit a WebAssembly command module for a WASI host
EmitWasmCommand
emit a browser or embedded WebAssembly core module
EvalCommand
evaluate snippet
FfiCommand
inspect and export typed FFI interface contracts
FfiExportCommand
export versioned Interface IR from local definitions with typed schemas and FFI lowering metadata
FixCommand
preview or apply compiler-guided migrations or reviewed structural source rewrites
LibsReadmeCommand
show README of a library from local ~/.config/calcit/modules or GitHub
LibsScanMdCommand
scan markdown files in a module directory
LibsSearchCommand
search libraries by keyword in name or description
ProgramDiffCommand
compare current snapshot (or one definition) against a Git ref with structured tree diff; use –base to diff two arbitrary refs from git history
QueryCommand
query project and builtin information (namespaces, definitions, configs)
QueryConfigCommand
read project configs (init_fn, reload_fn, version)
QueryContextCommand
gather bounded Snapshot metadata, static analysis, dependencies, and usages for one definition
QueryDefCommand
read a definition’s full code, summary (--summary), examples/tests (--only), or builtin metadata
QueryDefsCommand
list definitions in a namespace
QueryErrorCommand
read .calcit/error.cirru file for error stack traces
QueryFindCommand
find symbol across namespaces (fuzzy match by default; use –exact for precise match)
QueryNsCommand
list namespaces, or show ns details if namespace provided
QuerySchemaCommand
read a definition’s schema (type information)
QuerySearchCommand
search for leaf nodes across selected sources or a specific namespace/definition (fuzzy match by default)
QuerySearchExprCommand
search for structural expressions (Cirru expr or JSON array) across project or in specific namespace/definition (fuzzy match by default)
QueryTypeAtCommand
inspect static type evidence for an expression at a Snapshot path without running the program
QueryTypeCommand
inspect a type and list methods available through static dispatch metadata
QueryUsagesCommand
find usages of a definition across the project
TestCommand
discover and run definition-attached tests.
ToplevelCalcit
Top-level command.
TreeCommand
fine-grained code tree operations (view and modify AST nodes)
TreeDeleteCommand
delete node at specific path
TreeInsertCommand
insert node relative to the target at a path: –at before, after, prepend-child, or append-child
TreeRaiseCommand
replace the parent node with this child node (Paredit raise-sexp)
TreeReplaceCommand
replace node at specific path
TreeReplaceLeafCommand
find and replace all matching leaf nodes in definition (no path needed)
TreeSearchReplaceCommand
find unique leaf node and replace it; if multiple found, returns error with helpful hints
TreeShowCommand
view tree node at specific path
TreeStructuralCommand
rewrite node using references; requires --with name=path (use replace if no references)
TreeSwapCommand
swap node with a sibling: –with next or prev
TreeUnwrapCommand
splice all children of a node into its parent (inverse of wrap/rewrite)
TreeWrapCommand
wrap the node at path inside a new expression, using self as placeholder for the original node
VerifyCommand
run a declarative project verification profile
WeakTypesCommand
locate weakly-typed hotspots, type coverage, dynamic method dispatch, or deprecated calls

Enums§

AnalyzeSubcommand
CalcitCommand
CirruSubcommand
ConfigSubcommand
CursorSubcommand
DocsSubcommand
EditSubcommand
FfiSubcommand
LibsSubcommand
QuerySubcommand
SyntaxInputFormat
Transport format used when a mutation command receives one syntax node.
TreeSubcommand

Constants§

CALCIT_VERSION