pub struct Cli {Show 14 fields
pub command: Option<Commands>,
pub add_note: Option<String>,
pub list: bool,
pub edit: bool,
pub date: Option<String>,
pub relative_date: Option<i64>,
pub time: Option<String>,
pub time_format: Option<String>,
pub stdin: bool,
pub vault: Option<String>,
pub category: Option<String>,
pub header: bool,
pub version: bool,
pub note_content: Vec<String>,
}Fields§
§command: Option<Commands>§add_note: Option<String>Add a note (default behavior)
list: boolList notes for a specific date
edit: boolEdit today’s note
date: Option<String>Date selector (YYYY-MM-DD format)
relative_date: Option<i64>Relative date selector (days offset, 0 = today, positive = past, negative = future)
time: Option<String>Time selector (HH:MM or HH:MM:SS format)
time_format: Option<String>Time format override (12h|24h)
stdin: boolRead input from stdin (each line becomes a separate note)
vault: Option<String>Vault name to use (optional if only one vault exists)
category: Option<String>Category for section selection (e.g., ‘work’ uses section_header_work)
header: boolInclude table headers when listing notes in table format
version: boolShow version information
note_content: Vec<String>Note content (for default behavior)
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more