Skip to main content

Module cli_handlers

Module cli_handlers 

Source
Expand description

CLI handlers for standalone commands that don’t need full program loading

These handlers implement: query, docs (including remote libraries), cirru, edit, tree subcommands

Re-exports§

pub use edit::handle_edit_command;
pub use fix::handle_fix_command;

Modules§

edit
Edit and Tree subcommand handlers and shared utilities
fix

Enums§

AnalyzeView
The analyzer selected by a merged analyze option that has no parsed entry of its own.
StructuredOutputFormat

Constants§

VIEW_INFERRED_DYNAMIC
VIEW_LEGACY_MIGRATION
VIEW_OPTION_NIL_ROUNDTRIP

Functions§

format_cirru_expression
format_json_value_as_edn
format_type_query_annotation
handle_call_graph_diff_command
handle_cirru_command
handle_config_command
handle_cursor_command
handle_docs_command
handle_ffi_command
handle_program_diff_command
handle_query_command
handle_scaffold_command
handle_tree_command
Main handler for code command
load_main_snapshot
load_module_with_sources_silent
load_snapshot_for_static_analysis
markdown_fenced_block
Render an explicit Markdown boundary around code or structured text.
normalize_consolidated_views
Routes every merged analyze option to the analyzer that owns it. The returned view, when present, takes precedence over the parsed subcommand.
prepare_program_for_type_query
print_command_echo
removed_command_error
Explains a command line that uses an entry removed in 0.31.0 or 0.41.0, before argument parsing reports it as an unknown command. args includes the program name. Only the subcommand path (the first subcommand token after the top-level options and the leaf right after it) is inspected, so positional values such as docs read <file> <heading> or --entry tree are never mistaken for commands.
set_cursor_after_mode
set_tips_level
set_verbose_mutation_output
Enable the decoded-input echo for mutation commands (top-level --verbose).
should_echo_command
source_expression_type_at
Reuse type-at’s lexical evidence for a read-only source inventory. A lowered child is not evidence for a source call; calls need a unique compiler trace.
suppress_command_guidance
type_at_confidence
warn_on_global_temp_snapshot_path