pub enum Commands {
Show 15 variants
Add(AddArgs),
List {
status: StatusFilter,
priority: Option<Priority>,
due: Option<DueFilter>,
sort: Option<SortBy>,
tag: Option<String>,
project: Option<String>,
recurrence: Option<RecurrenceFilter>,
},
Done {
id: usize,
},
Undone {
id: usize,
},
Remove {
id: usize,
yes: bool,
},
Edit(EditArgs),
Clear {
yes: bool,
},
Search {
query: String,
tag: Option<String>,
project: Option<String>,
status: StatusFilter,
},
Stats,
Tags,
Projects,
Deps {
id: usize,
},
Info,
Recur {
id: usize,
pattern: Recurrence,
},
ClearRecur {
id: usize,
},
}Expand description
All available subcommands.
Variants§
Add(AddArgs)
Add a new task to your todo list
List
List and filter tasks
Fields
§
status: StatusFilterShow all, pending or done tasks.
§
recurrence: Option<RecurrenceFilter>Filter by recurrence pattern
Done
Mark a task as completed
Undone
Mark a completed task as pending
Remove
Remove a task permanently
Edit(EditArgs)
Edit an existing task
Clear
Clear all tasks
Search
Search for tasks by text content
Fields
§
status: StatusFilterNarrow results by completion status.
Stats
Show productivity statistics and activity chart.
Tags
List all tags with task counts.
Projects
List all projects with task counts.
Deps
Show dependency graph for a task.
Info
Show information about data file location.
Recur
Set or change recurrence pattern for a task.
ClearRecur
Remove recurrence pattern from a task.
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