pub struct ModCli {
pub registry: CommandRegistry,
}
Expand description
Represents a CLI application and provides command registration and dispatch.
Typical usage:
use modcli::ModCli;
let args: Vec<String> = std::env::args().skip(1).collect();
let mut cli = ModCli::new();
cli.run(args);
Fields§
§registry: CommandRegistry
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModCli
impl !RefUnwindSafe for ModCli
impl !Send for ModCli
impl !Sync for ModCli
impl Unpin for ModCli
impl !UnwindSafe for ModCli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more