KeiSeiKit-1.0/_primitives/_rust/kei-llm-router/src/main.rs
Parfii-bot a4e667de10 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

20 lines
643 B
Rust

//! CLI entry — dispatches to one of four subcommand handlers.
//!
//! Constructor Pattern: this file stays ≤30 LOC. Per-subcommand handlers
//! live in `cli.rs::handlers`.
use clap::Parser;
use kei_llm_router::cli::{handlers, Cli, Command};
#[tokio::main]
async fn main() {
let cli = Cli::parse();
let exit = match cli.command {
Command::Probe(args) => handlers::run_probe(args),
Command::Route(args) => handlers::run_route(args).await,
Command::ListBackends => handlers::run_list_backends().await,
Command::Which(args) => handlers::run_which(args).await,
};
std::process::exit(exit);
}