subx_cli/commands/
mod.rs

1//! SubX command execution module.
2//!
3//! This module contains implementations of each CLI subcommand's business logic,
4//! including AI matching, format conversion, synchronization, encoding detection,
5//! configuration management, and cache operations.
6//!
7//! The `dispatcher` module provides centralized command routing to eliminate
8//! code duplication between CLI and library API interfaces.
9//!
10//! # Examples
11//!
12//! ```rust,ignore
13//! use subx_cli::cli::Cli;
14//! use subx_cli::commands;
15//!
16//! // Execute the match command logic
17//! async fn run_match() -> subx_cli::Result<()> {
18//!     let args = Cli::parse().command;
19//!     commands::match_command::execute(args).await
20//! }
21//! ```
22pub mod cache_command;
23pub mod config_command;
24pub mod convert_command;
25pub mod detect_encoding_command;
26/// Central command dispatcher for unified command execution across CLI and library interfaces.
27pub mod dispatcher;
28pub mod match_command;
29pub mod sync_command;