auric 0.1.0-rc.1

CLI for `auric` MVC SPA framework
use clap::Parser;

pub(super) mod route;

#[derive(Debug, Parser)]
pub struct Opts {
    #[command(subcommand)]
    pub subcommand: Subcommand,
}

#[derive(Debug, Parser)]
pub enum Subcommand {
    #[command(name = "route")]
    Route(route::Opts),
}

pub async fn run(subcommand: Subcommand) -> anyhow::Result<()> {
    match subcommand {
        Subcommand::Route(route::Opts { name }) => route::run(name).await,
    }
}