mod bundle;
mod clean;
mod list;
use clap::{Args, Subcommand};
pub(crate) use bundle::run_bundle;
const OUT_SUBDIR: &str = "assets";
const CACHE_SCOPE: &str = "assets";
#[derive(Args)]
pub struct AssetCommand {
#[command(subcommand)]
command: AssetSubcommand,
}
#[derive(Subcommand)]
enum AssetSubcommand {
List(list::ListArgs),
Bundle(bundle::BundleArgs),
Clean(clean::CleanArgs),
}
impl AssetCommand {
pub async fn run(self) {
match self.command {
AssetSubcommand::List(args) => list::run(args).await,
AssetSubcommand::Bundle(args) => bundle::run(args).await,
AssetSubcommand::Clean(args) => clean::run(args).await,
}
}
}