xchecker_cli/lib.rs
1//! xchecker-cli - CLI interface for xchecker
2//!
3//! This crate provides the command-line interface for the xchecker tool,
4//! including command parsing, argument handling, and CLI-specific logic.
5
6// Re-export types from their new locations after modularization
7pub use xchecker_config::{CliArgs, Config};
8pub use xchecker_utils::error::XCheckerError;
9pub use xchecker_utils::exit_codes::ExitCode;
10pub use xchecker_utils::types::PhaseId;
11
12/// Main CLI entry point
13///
14/// This function parses command-line arguments and executes the appropriate command.
15pub async fn run_cli() -> Result<ExitCode, anyhow::Error> {
16 // CLI logic will be extracted from src/cli.rs
17 // For now, this is a placeholder
18 todo!("CLI extraction in progress - see src/cli.rs for current implementation")
19}
20
21/// Parse CLI arguments
22///
23/// This function parses command-line arguments and returns the parsed configuration.
24pub fn parse_args() -> Result<CliArgs, anyhow::Error> {
25 // CLI argument parsing will be extracted from src/cli.rs
26 // For now, this is a placeholder
27 todo!("CLI argument parsing extraction in progress - see src/cli.rs for current implementation")
28}