use super::cli::Commands;
use clap::CommandFactory;
pub mod add;
mod new;
pub async fn handle_commands(_: &gflow::config::Config, commands: Commands) -> anyhow::Result<()> {
match commands {
Commands::New(new_args) => new::handle_new(new_args),
Commands::Completion { shell } => {
let mut cmd = super::cli::GBatch::command();
let _ = crate::multicall::completion::generate_to_stdout(shell, &mut cmd, "gbatch");
Ok(())
}
}
}