1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Arguments for `talon meta`.
use clap::Args;
use crate::cli::SharedScopeArgs;
/// Arguments for the `meta` subcommand.
#[derive(Debug, Clone, Args)]
#[command(about = "Query frontmatter metadata from your vault.")]
pub struct MetaArgs {
/// Frontmatter field to project (repeatable).
#[arg(long)]
pub select: Vec<String>,
/// Emit tag counts.
#[arg(long)]
pub tag_counts: bool,
/// Resolve notes referencing this path via their sources: field.
#[arg(long)]
pub sources: Option<String>,
/// Frontmatter filter: KEY OP VALUE (repeatable). Ops: =, !=, <, <=, >, >=, contains, exists, ^= (prefix), ~= (glob).
#[arg(long)]
pub where_: Vec<String>,
/// Filter results indexed since this timestamp.
#[arg(long)]
pub since: Option<String>,
/// Search result limit.
#[arg(short = 'n', long)]
pub limit: Option<u16>,
#[command(flatten)]
pub scope: SharedScopeArgs,
}