talon_cli/cli/sync_args.rs
1//! Arguments for `talon sync`.
2
3use clap::Args;
4
5/// Arguments for the `sync` subcommand.
6#[derive(Debug, Clone, Args)]
7#[command(about = "Sync your vault with the search index.")]
8pub struct SyncArgs {
9 /// Paths to sync (defaults to entire vault).
10 #[arg(value_hint = clap::ValueHint::FilePath)]
11 pub paths: Vec<String>,
12
13 /// Force vector rebuild during sync.
14 #[arg(long)]
15 pub force: bool,
16
17 /// Delete and recreate the index before syncing.
18 #[arg(long)]
19 pub rebuild: bool,
20}