pub mod logs;
pub mod logprobs;
pub mod image;
pub mod audio;
pub mod video;
pub mod file;
use clap::Subcommand;
#[derive(Subcommand)]
pub enum Commands {
Logs { #[command(subcommand)] command: logs::Commands },
Logprobs { #[command(subcommand)] command: logprobs::Commands },
Image { #[command(subcommand)] command: image::Commands },
Audio { #[command(subcommand)] command: audio::Commands },
Video { #[command(subcommand)] command: video::Commands },
File { #[command(subcommand)] command: file::Commands },
}
impl Commands {
pub async fn handle(self, cli_config: &crate::Config, handle: &objectiveai_cli_sdk::output::Handle) -> Result<(), crate::error::Error> {
match self {
Commands::Logs { command } => command.handle(cli_config, handle).await,
Commands::Logprobs { command } => command.handle(cli_config, handle).await,
Commands::Image { command } => command.handle(cli_config, handle).await,
Commands::Audio { command } => command.handle(cli_config, handle).await,
Commands::Video { command } => command.handle(cli_config, handle).await,
Commands::File { command } => command.handle(cli_config, handle).await,
}
}
}