use anyhow::Result;
use clap::Subcommand;
pub mod assets;
pub mod diag;
pub mod list;
#[derive(Debug, Subcommand)]
pub enum Command {
List(list::ListArgs),
#[command(subcommand)]
Assets(assets::AssetsCmd),
#[command(subcommand)]
Diag(diag::DiagCmd),
}
impl Command {
pub async fn run(self) -> Result<()> {
match self {
Self::List(args) => list::run(args).await,
Self::Assets(cmd) => cmd.run(),
Self::Diag(cmd) => cmd.run().await,
}
}
}