Skip to main content

sqlite_graphrag/cli/
mod.rs

1//! CLI argument structs and command surface (clap-based).
2//!
3//! Defines `Cli` and all subcommand enums; contains no business logic.
4//!
5//! Split by surface: `globals` holds the root parser and its flags,
6//! `commands` the subcommand enum and its classification, and
7//! `value_enums` the `ValueEnum` types shared across argument structs.
8//! Every public item is re-exported here, so `crate::cli::X` keeps resolving
9//! exactly as before for every caller.
10
11mod commands;
12mod globals;
13mod value_enums;
14
15// Backend choice enums live in `backend_choice` (Wave C1).
16pub use crate::backend_choice::{BackendChoice, EmbeddingBackendChoice, LlmBackendChoice};
17pub use commands::Commands;
18pub use globals::Cli;
19pub use value_enums::{GraphExportFormat, MemoryType};
20
21#[cfg(test)]
22#[path = "../cli_json_only_format_tests.rs"]
23mod json_only_format_tests;
24
25#[cfg(test)]
26#[path = "../cli_heavy_concurrency_tests.rs"]
27mod heavy_concurrency_tests;
28
29/// GAP-SG-31/33/34/35/30: parse-time contracts for the Fase G clap fixes.
30#[cfg(test)]
31#[path = "../cli_fase_g_parsing_tests.rs"]
32mod fase_g_parsing_tests;