This commit is contained in:
2026-08-05 11:21:25 -04:00
parent 921d56f2b3
commit 7ce5ed118d
18 changed files with 1144 additions and 213 deletions
+23
View File
@@ -0,0 +1,23 @@
use clap::{Args, Parser, Subcommand};
#[derive(Args)]
pub(crate) struct SearchArgs {
#[arg(short, long, value_name = "DOC TYPE")]
pub(crate) discriminant: Option<u64>,
#[arg(value_name = "QUERY")]
pub(crate) query: String,
}
#[derive(Subcommand)]
pub(crate) enum Command {
Search(SearchArgs),
Reindex,
}
#[derive(Parser)]
#[clap(version, long_about = None)]
pub(crate) struct AppArgs {
#[command(subcommand)]
pub(crate) command: Option<Command>,
}