ggen_cli_lib/cmds/
mod.rs

1//! Command Router Module - clap-noun-verb v3.4.0 Auto-Discovery
2//!
3//! This module provides the entry point for clap-noun-verb auto-discovery.
4//! All noun modules with #[verb] functions are automatically discovered and registered.
5//!
6//! ## Architecture
7//! ```
8//! cmds (router) → auto-discovery → #[verb] functions → domain (async logic)
9//! ```
10
11// Command modules - clap-noun-verb auto-discovery
12pub mod ai;
13pub mod graph;
14pub mod hook;
15pub mod marketplace;
16pub mod project;
17pub mod template;
18pub mod utils;
19
20use ggen_utils::error::Result;
21
22/// Setup and run the command router using clap-noun-verb v3.4.0 auto-discovery
23pub fn run_cli() -> Result<()> {
24    // Use clap-noun-verb's auto-discovery to find all #[verb] functions
25    clap_noun_verb::run()
26        .map_err(|e| anyhow::anyhow!("CLI execution failed: {}", e))?;
27    Ok(())
28}