Skip to main content

Commands

Enum Commands 

Source
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)

Fields

§datesign: Option<String>

Date to open (today, yesterday, YYYYMMDD, last friday, …)

§

List

List elements for a date as an indented tree

Fields

§datesign: Option<String>

Date (default: today)

§type: Option<String>

Filter by element type: task, note, log, reminder

§tag: Option<String>

Filter by tag name

§status: Option<String>

Filter tasks by status: open, done

§since: Option<String>

Show elements from SINCE up to DATESIGN

§refs: bool

Show human-readable ref column (task-1, mps-1.2, …)

§all: bool

List elements across all dates in the archive

§name: Option<String>

Filter character entries by person name

§

Append

Append an element to today’s file without opening an editor

Fields

§kind: String

Element type: task, note, log, reminder (aliases from config are resolved)

§body: Vec<String>

Element body text

§tags: Option<String>

Comma-separated tags (e.g. work,backend)

§status: Option<String>

Task status: open (default) or done

§at: Option<String>

Time for reminders (e.g. 5pm, 10:30)

§start_time: Option<String>

Start time for logs (HH:MM)

§end_time: Option<String>

End time for logs (HH:MM)

§name: Option<String>

Person name for character entries

§

Update

Update an element’s attributes in-place

Fields

§ref_path: String

Element ref: human (task-1) or epoch (20260428.1)

§status: Option<String>

Set task status: open or done

§start_time: Option<String>

Set log start time (HH:MM)

§end_time: Option<String>

Set log end time (HH:MM)

§at: Option<String>

Set reminder time

§date: Option<String>

Date context for human refs (default: today)

§

Edit

Edit an element’s body text in $EDITOR

Fields

§ref_path: String

Element ref: human (task-1) or epoch (20260428.1)

§date: Option<String>

Date context for human refs (default: today)

§

Delete

Delete an element from its file

Fields

§ref_path: String

Element ref: human (task-1) or epoch (20260428.1)

§date: Option<String>

Date context for human refs (default: today)

§yes: bool

Skip confirmation prompt

§

Done

Mark a task as done (shorthand for update REFPATH –status done)

Fields

§ref_path: String

Element ref: human (task-1) or epoch (20260428.1)

§date: Option<String>

Date context for human refs (default: today)

§

Search

Full-text search across all .mps files

Fields

§query: String

Search query

§type: Option<String>

Filter by element type

§tag: Option<String>

Filter by tag

§since: Option<String>

Search from this date onward

§name: Option<String>

Filter character entries by person name

§

Stats

Show element counts and log durations

Fields

§datesign: Option<String>

Date (default: today)

§since: Option<String>

Stats from SINCE up to DATESIGN

§all: bool

Stats across all dates in the archive

§

Tags

Show tag usage frequency bar chart

Fields

§datesign: Option<String>

Date (default: today)

§type: Option<String>

Filter by element type

§status: Option<String>

Filter tasks by status

§since: Option<String>

Tags from SINCE up to DATESIGN

§all: bool

Count tags across all dates

§name: Option<String>

Filter character entries by person name

§

Export

Export elements to JSON or CSV on stdout

Fields

§datesign: Option<String>

Date (default: today)

§format: String

Output format: json (default), csv

§type: Option<String>

Filter by element type

§since: Option<String>

Export from SINCE up to DATESIGN

§

Config

View or edit MPS configuration

Fields

§subcommand: Option<String>

Subcommand: show (default) or edit

§

Git

Run git commands inside the storage directory

Fields

§args: Vec<String>

Git subcommand and args (auto = full cycle, autocommit = stage+commit)

§

Autogit

Stage, commit, pull, and push (equivalent to git auto)

§

Cmd

Run any shell command inside the storage directory

Fields

§args: Vec<String>

Command and arguments

§

Notify

Check for due reminders and open tasks; send desktop notifications

Fields

§dry_run: bool

Show what would be sent without actually sending

§window: Option<u64>

Override the time window in minutes (default: from config)

§force: bool

Fire even if already notified within the window

§

Daemon

Manage the background notification daemon (systemd user timer)

Fields

§subcommand: String

Subcommand: install, remove, status, run

§

Meta

Inspect or edit the .mps.meta sidecar config file

Fields

§subcommand: Option<String>

Subcommand: show (default), clear, edit

§

Version

Print version

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.