Skip to main content

talon_cli/cli/
read_args.rs

1//! Arguments for `talon read`.
2
3use clap::Args;
4
5/// Arguments for the `read` subcommand.
6#[derive(Debug, Clone, Args)]
7#[command(about = "Read a note from your vault.")]
8pub struct ReadArgs {
9    /// Path to the note in the vault.
10    pub path: String,
11
12    #[arg(long)]
13    /// First line to read (1-indexed).
14    pub from_line: Option<u16>,
15
16    #[arg(long)]
17    /// Maximum number of lines to read.
18    pub max_lines: Option<u16>,
19
20    /// Read raw note content without formatting.
21    #[arg(long)]
22    pub raw: bool,
23}