Create the test xtask command and args

This commit is contained in:
Mubelotix
2025-08-25 11:23:46 +02:00
parent a94a13c9b0
commit d9177d4727
7 changed files with 63 additions and 30 deletions

View File

@ -0,0 +1,24 @@
use clap::Parser;
pub fn default_asset_folder() -> String {
"./bench/assets/".into()
}
pub fn default_log_filter() -> String {
"info".into()
}
#[derive(Parser, Debug, Clone)]
pub struct CommonArgs {
/// Directory to store the remote assets.
#[arg(long, default_value_t = default_asset_folder())]
pub asset_folder: String,
/// Log directives
#[arg(short, long, default_value_t = default_log_filter())]
pub log_filter: String,
/// Authentication bearer for fetching assets
#[arg(long)]
pub assets_key: Option<String>,
}

View File

@ -0,0 +1 @@
pub mod args;