tourism 0.1.1

Tourism service library and CLI by aham.ro
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(())
}