Skip to main content

agentctl/workflow/
mod.rs

1pub mod run;
2pub mod schema;
3pub mod steps;
4
5use clap::{Args, Subcommand};
6
7#[derive(Debug, Args)]
8pub struct WorkflowArgs {
9    #[command(subcommand)]
10    pub command: Option<WorkflowSubcommand>,
11}
12
13#[derive(Debug, Subcommand)]
14pub enum WorkflowSubcommand {
15    /// Execute workflow manifest
16    Run(run::RunArgs),
17}
18
19pub fn run(command: WorkflowSubcommand) -> i32 {
20    match command {
21        WorkflowSubcommand::Run(args) => run::run(args),
22    }
23}