cli_run

Function cli_run 

Source
pub fn cli_run(router: &mut CliRouter)
Expand description

Executes the CLI command router and processes the appropriate command.

This function should be called once all necessary routes have been defined via router.add(). It will parse command line arguments, look up the appropriate command handler, and execute it or display help as needed.

§Arguments

  • router - A mutable reference to the configured CLI router

§Example

use falcon_cli::{CliRouter, cli_run};

let mut router = CliRouter::new();
router.app_name("My App");
// Add commands here...
cli_run(&mut router);