use anyhow::Result;
use clap::Parser;
use oph::{commands, interactive, Cli, Commands};
fn main() -> Result<()> {
let cli = Cli::parse();
match cli.command {
Commands::Dev { command } => commands::dev::run(command)?,
Commands::Prod { command } => commands::prod::run(command)?,
Commands::Db { command } => commands::db::run(command)?,
Commands::Redis { command } => commands::redis::run(command)?,
Commands::Storage { command } => commands::storage::run(command)?,
Commands::Run { command } => commands::run::run(command)?,
Commands::Validate { command } => commands::validate::run(command)?,
Commands::Clean { command } => commands::clean::run(command)?,
Commands::Completions { shell } => commands::completions::run(shell)?,
Commands::Interactive => interactive::run()?,
}
Ok(())
}