Skip to main content

Commands

Enum Commands 

Source
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: StatusFilter

Show all, pending or done tasks.

§priority: Option<Priority>

Filter by priority level.

§due: Option<DueFilter>

Filter by due-date window

§sort: Option<SortBy>

Sort results.

§tag: Option<String>

Filter by tag name.

§project: Option<String>

Filter by project name (case-insensitive)

§recurrence: Option<RecurrenceFilter>

Filter by recurrence pattern

§

Done

Mark a task as completed

Fields

§id: usize

1-based task ID

§

Undone

Mark a completed task as pending

Fields

§id: usize

1-based task ID

§

Remove

Remove a task permanently

Fields

§id: usize

1-based Task ID.

§yes: bool

Skip the interactive confirmation prompt.

§

Edit(EditArgs)

Edit an existing task

§

Clear

Clear all tasks

Fields

§yes: bool

Skip the interactive confirmation prompt.

§

Search

Search for tasks by text content

Fields

§query: String

Case-insensitive substring to match against task descriptions.

§tag: Option<String>

Narrow results to a specific tag.

§project: Option<String>

Narrow results to a specific project.

§status: StatusFilter

Narrow 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.

Fields

§id: usize

1-based task ID.

§

Info

Show information about data file location.

§

Recur

Set or change recurrence pattern for a task.

Fields

§id: usize

1-based task ID.

§pattern: Recurrence

Desired recurrence pattern.

§

ClearRecur

Remove recurrence pattern from a task.

Fields

§id: usize

1-based task ID.

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.