pub enum Commands {
Show 19 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>,
},
Edit {
ref_path: String,
date: Option<String>,
},
Delete {
ref_path: String,
date: Option<String>,
yes: bool,
},
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>,
},
Notify {
dry_run: bool,
window: Option<u64>,
force: bool,
},
Daemon {
subcommand: String,
},
Meta {
subcommand: Option<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
Edit
Edit an element’s body text in $EDITOR
Fields
Delete
Delete an element from its file
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
Notify
Check for due reminders and open tasks; send desktop notifications
Fields
Daemon
Manage the background notification daemon (systemd user timer)
Meta
Inspect or edit the .mps.meta sidecar config file
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>
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>
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
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
Self can parse a specific subcommand