use clap::Subcommand;
use std::path::PathBuf;
#[derive(Subcommand)]
pub enum TourismCommands {
Migrate {
#[arg(long)]
path: Option<PathBuf>,
},
}
pub async fn run(
cmd: TourismCommands,
) -> Result<(), Box<dyn std::error::Error>> {
match cmd {
TourismCommands::Migrate { path } => crate::core::db::migrate(path).await?,
}
Ok(())
}