Expand description
SubX command execution module.
This module contains implementations of each CLI subcommand’s business logic, including AI matching, format conversion, synchronization, encoding detection, configuration management, and cache operations.
The dispatcher
module provides centralized command routing to eliminate
code duplication between CLI and library API interfaces.
§Examples
ⓘ
use subx_cli::cli::Cli;
use subx_cli::commands;
// Execute the match command logic
async fn run_match() -> subx_cli::Result<()> {
let args = Cli::parse().command;
commands::match_command::execute(args).await
}
Modules§
- cache_
command - Cache management command implementation with comprehensive cleanup capabilities.
- config_
command - Configuration management command implementation with hierarchical settings.
- convert_
command - Subtitle format conversion command implementation.
- detect_
encoding_ command - Advanced character encoding detection command implementation.
- dispatcher
- Central command dispatcher for unified command execution across CLI and library interfaces.
- match_
command - AI-powered subtitle file matching command implementation.
- sync_
command - Refactored sync command supporting new multi-method sync engine.