trusty-search 0.3.17

Machine-wide hybrid code search service: BM25 + vector + KG, zero cold-start, MCP server
Documentation
//! CLI subcommand handlers.
//!
//! Why: `main()` was a 945-line function with cyclomatic complexity ~113 because
//! every subcommand was inlined into one giant `match`. This module splits each
//! `Commands::*` variant into its own handler function so `main()` becomes a
//! thin dispatcher and each handler stays under ~150 lines with cyclo < 20.
//!
//! What: one module per subcommand. Handlers take the parsed argument fields
//! plus any global flags they need (`index`, `json`). They return `Result<()>`
//! and may call `std::process::exit(1)` on user-facing errors that should
//! short-circuit (same behaviour as before the refactor).
//!
//! Test: `cargo build && cargo test --workspace` — no behaviour change; the
//! refactor is purely structural.

pub mod add;
pub mod convert;
pub mod daemon_guard;
pub mod dashboard;
pub mod doctor;
pub mod index;
pub mod init;
pub mod list;
pub mod query;
pub mod reindex;
pub mod remove;
pub mod search;
pub mod serve;
pub mod service;
pub mod start;
pub mod status;
pub mod stop;
pub mod watch;