Wave 2: CLI skeleton, cache write, config system, spec indexer (bd-3d2, bd-1ie, bd-1sb, bd-189)
This commit is contained in:
23
src/cli/cache_cmd.rs
Normal file
23
src/cli/cache_cmd.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
use clap::Args as ClapArgs;
|
||||
|
||||
use crate::errors::SwaggerCliError;
|
||||
|
||||
/// Manage the spec cache
|
||||
#[derive(Debug, ClapArgs)]
|
||||
pub struct Args {
|
||||
/// Show cache location
|
||||
#[arg(long)]
|
||||
pub path: bool,
|
||||
|
||||
/// Clear the entire cache
|
||||
#[arg(long)]
|
||||
pub clear: bool,
|
||||
|
||||
/// Show cache size
|
||||
#[arg(long)]
|
||||
pub size: bool,
|
||||
}
|
||||
|
||||
pub async fn execute(_args: &Args, _robot: bool) -> Result<(), SwaggerCliError> {
|
||||
Err(SwaggerCliError::Usage("cache not yet implemented".into()))
|
||||
}
|
||||
Reference in New Issue
Block a user