ggen-cli-lib 26.5.19

CLI interface for ggen
Documentation
//! CI commands - clap-noun-verb auto-discovery
use clap::Subcommand;
use ggen_cli::prelude::*;

use ggen_core::domain::ci;

#[derive(Debug, Subcommand)]
pub enum CiCmd {
    /// Generate CI workflow
    Workflow(ci::workflow::WorkflowArgs),
}

impl CiCmd {
    pub fn execute(&self) -> Result<()> {
        match self {
            Self::Workflow(args) => ci::workflow::run(args),
        }
    }
}