Skip to main content

TaskCommands

Enum TaskCommands 

Source
pub enum TaskCommands {
Show 16 variants List { list: String, status: Option<Vec<String>>, assignee: Option<Vec<String>>, tag: Option<Vec<String>>, include_closed: bool, order_by: Option<String>, reverse: bool, }, Search { space: Option<String>, folder: Option<String>, list: Option<String>, status: Option<Vec<String>>, assignee: Option<Vec<String>>, tag: Option<Vec<String>>, }, Get { id: Option<String>, subtasks: bool, custom_task_id: bool, }, Create { list: String, name: String, description: Option<String>, status: Option<String>, priority: Option<u8>, assignee: Option<Vec<String>>, tag: Option<Vec<String>>, due_date: Option<String>, parent: Option<String>, }, Update { id: Option<String>, name: Option<String>, status: Option<String>, priority: Option<u8>, add_assignee: Option<Vec<String>>, rem_assignee: Option<Vec<String>>, description: Option<String>, }, Delete { id: Option<String>, }, TimeInStatus { ids: Vec<String>, }, AddTag { task_or_tag: String, tag_name: Option<String>, }, RemoveTag { task_or_tag: String, tag_name: Option<String>, }, AddDep { id: Option<String>, depends_on: Option<String>, dependency_of: Option<String>, }, RemoveDep { id: Option<String>, depends_on: Option<String>, dependency_of: Option<String>, }, Link { id: String, target_id: String, }, Unlink { id: String, target_id: String, }, Move { list: String, id: Option<String>, }, SetEstimate { assignee: String, time: u64, id: Option<String>, }, ReplaceEstimates { assignee: String, time: u64, id: Option<String>, },
}

Variants§

§

List

List tasks in a list

Fields

§list: String

List ID

§status: Option<Vec<String>>

Filter by status

§assignee: Option<Vec<String>>

Filter by assignee

§tag: Option<Vec<String>>

Filter by tag

§include_closed: bool

Include closed tasks

§order_by: Option<String>

Order by field

§reverse: bool

Reverse sort order

§

Search

Search tasks across workspace

Fields

§space: Option<String>

Filter by space

§folder: Option<String>

Filter by folder

§list: Option<String>

Filter by list

§status: Option<Vec<String>>

Filter by status

§assignee: Option<Vec<String>>

Filter by assignee

§tag: Option<Vec<String>>

Filter by tag

§

Get

Get task details

Fields

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

§subtasks: bool

Include subtasks

§custom_task_id: bool

Treat ID as custom task ID

§

Create

Create a task

Fields

§list: String

List ID

§name: String

Task name

§description: Option<String>

Description

§status: Option<String>

Status

§priority: Option<u8>

Priority (1=urgent, 2=high, 3=normal, 4=low)

§assignee: Option<Vec<String>>

Assignee user ID

§tag: Option<Vec<String>>

Tag name

§due_date: Option<String>

Due date (YYYY-MM-DD)

§parent: Option<String>

Parent task ID (creates subtask)

§

Update

Update a task

Fields

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

§name: Option<String>

New name

§status: Option<String>

New status

§priority: Option<u8>

New priority (1-4)

§add_assignee: Option<Vec<String>>

Add assignee

§rem_assignee: Option<Vec<String>>

Remove assignee

§description: Option<String>

New description

§

Delete

Delete a task (explicit ID required — never auto-detects from branch)

Fields

§id: Option<String>

Task ID

§

TimeInStatus

Get time in status for task(s)

Fields

§ids: Vec<String>

Task ID(s) — multiple IDs triggers bulk mode

§

AddTag

Add a tag to a task. Usage: add-tag <task_id> <tag_name> OR add-tag <tag_name> (task auto-detected from branch)

Fields

§task_or_tag: String

Task ID (or tag name if only one arg is given)

§tag_name: Option<String>

Tag name (when task_or_tag is a task ID)

§

RemoveTag

Remove a tag from a task. Usage: remove-tag <task_id> <tag_name> OR remove-tag <tag_name> (task auto-detected)

Fields

§task_or_tag: String

Task ID (or tag name if only one arg is given)

§tag_name: Option<String>

Tag name (when task_or_tag is a task ID)

§

AddDep

Add a dependency to a task

Fields

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

§depends_on: Option<String>

This task depends on another task (task is a blocker)

§dependency_of: Option<String>

This task is a dependency of another task (task is blocked by)

§

RemoveDep

Remove a dependency from a task

Fields

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

§depends_on: Option<String>

Remove depends-on relationship with this task ID

§dependency_of: Option<String>

Remove dependency-of relationship with this task ID

Link two tasks together

Fields

§id: String

Task ID

§target_id: String

Target task ID to link to

Unlink two tasks

Fields

§id: String

Task ID

§target_id: String

Target task ID to unlink from

§

Move

Move a task to a different list (v3)

Fields

§list: String

Destination list ID

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

§

SetEstimate

Set per-user time estimate on a task (v3)

Fields

§assignee: String

Assignee user ID

§time: u64

Time estimate in milliseconds

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

§

ReplaceEstimates

Replace all per-user time estimates on a task (v3)

Fields

§assignee: String

Assignee user ID

§time: u64

Time estimate in milliseconds

§id: Option<String>

Task ID (auto-detected from git branch if omitted)

Trait Implementations§

Source§

impl FromArgMatches for TaskCommands

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 TaskCommands

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more