Module cli

Module cli 

Source
Expand description

CLI (Command-Line Interface) implementation

This module provides a simple CLI interface that parses command-line arguments, executes the corresponding command, and exits.

§Example

use dynamic_cli::interface::CliInterface;
use dynamic_cli::prelude::*;

let registry = CommandRegistry::new();
let context = Box::new(MyContext::default());

let cli = CliInterface::new(registry, context);
cli.run(std::env::args().skip(1).collect())?;

Structs§

CliInterface
CLI (Command-Line Interface) handler