mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-24 05:36:28 +00:00
Create the test xtask command and args
This commit is contained in:
24
crates/xtask/src/common/args.rs
Normal file
24
crates/xtask/src/common/args.rs
Normal 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>,
|
||||
}
|
1
crates/xtask/src/common/mod.rs
Normal file
1
crates/xtask/src/common/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod args;
|
Reference in New Issue
Block a user