run_cli

Function run_cli 

Source
pub fn run_cli() -> Result<(), Box<dyn Error>>
Expand description

Parse CLI arguments and execute the corresponding command.

This is the main entry point for the largo CLI. It parses command-line arguments using clap, then dispatches to the appropriate handler function based on the subcommand.

§Errors

Returns an error if:

  • The project structure is invalid (missing Largo.toml)
  • File system operations fail
  • Build or compilation fails
  • Registry operations fail (authentication, network, etc.)

§Example

use logicaffeine_cli::cli::run_cli;

fn main() {
    if let Err(e) = run_cli() {
        eprintln!("Error: {}", e);
        std::process::exit(1);
    }
}