use clap::Parser;
pub mod fetch;
#[derive(Debug, Parser)]
pub enum Cmd {
#[command(subcommand)]
Fetch(fetch::Cmd),
}
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error(transparent)]
Fetch(#[from] fetch::Error),
}
impl Cmd {
pub async fn run(&self) -> Result<(), Error> {
match self {
Cmd::Fetch(cmd) => cmd.run().await?,
}
Ok(())
}
}