Skip to main content

calcit_cli/cli_handlers/
mod.rs

1//! CLI handlers for standalone commands that don't need full program loading
2//!
3//! These handlers implement: query, docs (including remote libraries), cirru, edit, tree subcommands
4
5mod atomic_write;
6mod call_graph_diff;
7mod chunk_display;
8mod cirru;
9mod cirru_validator;
10mod command_echo;
11mod common;
12mod config;
13mod cursor;
14mod docs;
15pub mod edit;
16mod ffi;
17pub mod fix;
18mod libs;
19mod markdown_read;
20mod normalize;
21mod ns_view;
22mod program_diff;
23mod query;
24mod scaffold;
25mod snapshot_scope;
26mod stdout;
27mod structural_pattern;
28mod structured_output;
29#[cfg(test)]
30mod test_support;
31mod tips;
32mod tree;
33mod tree_mutation;
34
35pub use call_graph_diff::handle_call_graph_diff_command;
36pub use cirru::handle_cirru_command;
37pub use command_echo::{print_command_echo, should_echo_command};
38pub use common::markdown_fenced_block;
39pub use common::{set_verbose_mutation_output, warn_on_global_temp_snapshot_path};
40pub use config::handle_config_command;
41pub use cursor::{handle_cursor_command, set_cursor_after_mode};
42pub use docs::handle_docs_command;
43pub use edit::handle_edit_command;
44pub use ffi::handle_ffi_command;
45pub use fix::handle_fix_command;
46pub use normalize::{AnalyzeView, normalize_consolidated_views, removed_command_error};
47pub use normalize::{VIEW_INFERRED_DYNAMIC, VIEW_LEGACY_MIGRATION, VIEW_OPTION_NIL_ROUNDTRIP};
48pub use program_diff::handle_program_diff_command;
49pub use query::handle_query_command;
50pub use query::{
51  format_cirru_expression, format_type_query_annotation, load_main_snapshot, load_module_with_sources_silent,
52  load_snapshot_for_static_analysis, prepare_program_for_type_query, source_expression_type_at, type_at_confidence,
53};
54pub use scaffold::handle_scaffold_command;
55pub use structured_output::{StructuredOutputFormat, format_json_value_as_edn};
56pub use tips::{set_tips_level, suppress_command_guidance};
57pub use tree::handle_tree_command;
58// Re-export when needed by other modules; keep internal for now to avoid unused-import warnings