22 lines
496 B
Rust
22 lines
496 B
Rust
use clap::Args as ClapArgs;
|
|
|
|
use crate::errors::SwaggerCliError;
|
|
|
|
/// Search endpoints by keyword
|
|
#[derive(Debug, ClapArgs)]
|
|
pub struct Args {
|
|
/// Alias of the cached spec
|
|
pub alias: String,
|
|
|
|
/// Search query
|
|
pub query: String,
|
|
|
|
/// Maximum number of results
|
|
#[arg(long, default_value = "20")]
|
|
pub limit: usize,
|
|
}
|
|
|
|
pub async fn execute(_args: &Args, _robot: bool) -> Result<(), SwaggerCliError> {
|
|
Err(SwaggerCliError::Usage("search not yet implemented".into()))
|
|
}
|