- Fix trailing whitespace in kex.rs and s3.rs - Add missing KexProposal import in kex_complete.rs - Auto-fix clippy warnings across all crates - All 153 tests pass
29 lines
859 B
Rust
29 lines
859 B
Rust
use clap::Parser;
|
|
use markbase_core::cli::Cli;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> anyhow::Result<()> {
|
|
env_logger::Builder::from_default_env()
|
|
.filter_level(log::LevelFilter::Info)
|
|
.init();
|
|
|
|
let cli = Cli::parse();
|
|
|
|
match cli.command {
|
|
markbase_core::cli::Commands::Interface(cmd) => {
|
|
markbase_core::cli::interface::handle_interface_command(cmd).await?;
|
|
}
|
|
markbase_core::cli::Commands::Metadata(cmd) => {
|
|
markbase_core::cli::metadata::handle_metadata_command(cmd).await?;
|
|
}
|
|
markbase_core::cli::Commands::Storage(cmd) => {
|
|
markbase_core::cli::storage::handle_storage_command(cmd).await?;
|
|
}
|
|
markbase_core::cli::Commands::Tools(cmd) => {
|
|
markbase_core::cli::tools::handle_tools_command(cmd).await?;
|
|
}
|
|
}
|
|
|
|
Ok(())
|
|
}
|