| Crates.io | xacli |
| lib.rs | xacli |
| version | 0.2.0 |
| created_at | 2025-11-27 10:45:28.71298+00 |
| updated_at | 2026-01-15 18:31:06.04364+00 |
| description | A modern, developer-friendly CLI framework for Rust |
| homepage | |
| repository | https://github.com/yufeiminds/xacli |
| max_upload_size | |
| id | 1953509 |
| size | 85,586 |
A powerful, type-safe CLI framework for Rust.
#[derive(App)], #[derive(Subcommand)], #[derive(ValueEnum)][dependencies]
xacli = "0.1"
use xacli::App;
#[derive(App)]
#[command(name = "myapp", about = "My CLI app")]
struct Cli {
/// The name to greet
#[arg(short = 'n', long = "name", default_value = "World")]
name: String,
/// Enable verbose output
#[arg(short = 'v', long = "verbose")]
verbose: bool,
}
fn main() {
let cli = Cli::parse();
println!("Hello, {}!", cli.name);
}
| Crate | Description |
|---|---|
xacli |
Umbrella crate (re-exports all) |
xacli-core |
Core framework |
xacli-derive |
Procedural macros |
xacli-components |
Interactive components |
Apache-2.0