query: init

This commit is contained in:
nym21
2025-03-02 11:08:35 +01:00
parent 6d7ff38cf2
commit 0ceae2852e
18 changed files with 497 additions and 210 deletions

View File

@@ -0,0 +1,18 @@
use clap::Parser;
use serde::Deserialize;
use crate::Format;
#[derive(Debug, Deserialize, Parser)]
pub struct Params {
#[clap(short, long)]
pub index: String,
#[clap(short, long, value_delimiter = ' ', num_args = 1..)]
pub values: Vec<String>,
#[clap(short, long, allow_hyphen_values = true)]
pub from: Option<i64>,
#[clap(short, long, allow_hyphen_values = true)]
pub to: Option<i64>,
#[clap(long)]
pub format: Option<Format>,
}