pub enum Commands {
Show 14 variants
Open {
datesign: Option<String>,
},
List {
datesign: Option<String>,
type: Option<String>,
tag: Option<String>,
status: Option<String>,
since: Option<String>,
refs: bool,
all: bool,
name: Option<String>,
},
Append {
kind: String,
body: Vec<String>,
tags: Option<String>,
status: Option<String>,
at: Option<String>,
start_time: Option<String>,
end_time: Option<String>,
name: Option<String>,
},
Update {
ref_path: String,
status: Option<String>,
start_time: Option<String>,
end_time: Option<String>,
at: Option<String>,
date: Option<String>,
},
Done {
ref_path: String,
date: Option<String>,
},
Search {
query: String,
type: Option<String>,
tag: Option<String>,
since: Option<String>,
name: Option<String>,
},
Stats {
datesign: Option<String>,
since: Option<String>,
all: bool,
},
Tags {
datesign: Option<String>,
type: Option<String>,
status: Option<String>,
since: Option<String>,
all: bool,
name: Option<String>,
},
Export {
datesign: Option<String>,
format: String,
type: Option<String>,
since: Option<String>,
},
Config {
subcommand: Option<String>,
},
Git {
args: Vec<String>,
},
Autogit,
Cmd {
args: Vec<String>,
},
Version,
}Variants§
Open
Open a date’s .mps file in $EDITOR (default: today)
List
List elements for a date as an indented tree
Fields
Append
Append an element to today’s file without opening an editor
Fields
Comma-separated tags (e.g. work,backend)
Update
Update an element’s attributes in-place
Fields
Done
Mark a task as done (shorthand for update REFPATH –status done)
Fields
Search
Full-text search across all .mps files
Fields
Stats
Show element counts and log durations
Fields
Tags
Show tag usage frequency bar chart
Fields
Export
Export elements to JSON or CSV on stdout
Fields
Config
View or edit MPS configuration
Git
Run git commands inside the storage directory
Autogit
Stage, commit, pull, and push (equivalent to git auto)
Cmd
Run any shell command inside the storage directory
Version
Print version
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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