Expand description
ModCLI — a lightweight, modular CLI framework for Rust.
§Quick Start
use modcli::ModCli;
let args: Vec<String> = std::env::args().skip(1).collect();
let mut cli = ModCli::new();
cli.run(args);
§Features
- Custom commands via the
Command
trait - Styled output, gradients, progress, tables
- Optional internal helper commands
Note: Runtime plugins and JSON/config loaders have been removed from core for security and performance. Configure your CLI directly in code.
Re-exports§
pub use crate::command::Command as CliCustom;
Modules§
- command
- commands
- custom
- error
- input
- loader
- output
- Output utilities for styled text, gradients, progress, and tables.
- parser
Structs§
- ModCli
- Represents a CLI application and provides command registration and dispatch.
Functions§
- modcli_
version - Returns the version of the ModCLI framework (from
modcli/Cargo.toml
).