pub struct Cli {Show 24 fields
pub db: String,
pub query: Option<String>,
pub query_arg: Option<String>,
pub trace: bool,
pub auto_create_missing_references: bool,
pub structure: Option<u32>,
pub before: bool,
pub changes: bool,
pub after: bool,
pub lino_input: Option<String>,
pub lino_output: Option<String>,
pub transactions: bool,
pub transactions_file: Option<String>,
pub commit_mode: Option<String>,
pub retention: Option<String>,
pub vc: bool,
pub vc_file: Option<String>,
pub branch: Option<String>,
pub branch_from: Option<i64>,
pub checkout: Option<String>,
pub tag: Option<String>,
pub list_branches: bool,
pub list_tags: bool,
pub show_log: bool,
}Fields§
§db: String§query: Option<String>§query_arg: Option<String>§trace: bool§auto_create_missing_references: bool§structure: Option<u32>§before: bool§changes: bool§after: bool§lino_input: Option<String>§lino_output: Option<String>§transactions: bool§transactions_file: Option<String>§commit_mode: Option<String>§retention: Option<String>§vc: bool§vc_file: Option<String>§branch: Option<String>§branch_from: Option<i64>§checkout: Option<String>§tag: Option<String>§list_branches: bool§show_log: boolImplementations§
Source§impl Cli
impl Cli
Sourcepub fn transactions_requested(&self) -> bool
pub fn transactions_requested(&self) -> bool
True when any flag in the transactions decorator family was passed.
Sourcepub fn vc_requested(&self) -> bool
pub fn vc_requested(&self) -> bool
True when any flag in the version-control decorator family was passed.
pub fn parse() -> Result<CliCommand>
pub fn parse_from<I, T>(args: I) -> Result<CliCommand>
pub fn print_help()
pub fn help_text() -> &'static str
pub fn version_text() -> String
Trait Implementations§
impl Eq for Cli
impl StructuralPartialEq for Cli
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