pub enum TaskCommands {
Create {
name: String,
description: Option<String>,
parent: Option<i64>,
status: String,
priority: Option<i32>,
owner: String,
metadata: Vec<String>,
blocked_by: Vec<i64>,
blocks: Vec<i64>,
format: String,
},
Get {
id: i64,
with_events: bool,
with_context: bool,
format: String,
},
Update {Show 14 fields
id: i64,
name: Option<String>,
description: Option<String>,
status: Option<String>,
priority: Option<i32>,
active_form: Option<String>,
owner: Option<String>,
parent: Option<i64>,
metadata: Vec<String>,
add_blocked_by: Vec<i64>,
add_blocks: Vec<i64>,
rm_blocked_by: Vec<i64>,
rm_blocks: Vec<i64>,
format: String,
},
List {
status: Option<String>,
parent: Option<i64>,
sort: Option<String>,
limit: Option<i64>,
offset: Option<i64>,
tree: bool,
format: String,
},
Delete {
id: i64,
cascade: bool,
format: String,
},
Start {
id: i64,
description: Option<String>,
format: String,
},
Done {
id: Option<i64>,
format: String,
},
Next {
format: String,
},
}Variants§
Create
Create a new task
Examples: ie task create “Implement auth” ie task create “Add tests” –description “Unit + integration tests” –parent 42 ie task create “Fix bug” –status doing –priority 1
Fields
Get
Get task details
Examples: ie task get 42 ie task get 42 –with-events ie task get 42 –with-context
Fields
Update
Update an existing task
Examples: ie task update 42 –name “New name” ie task update 42 –description “Updated spec” –priority 1 ie task update 42 –status doing ie task update 42 –metadata type=epic –metadata “key=” (delete key)
Fields
List
List tasks with optional filters
Examples: ie task list ie task list –status todo ie task list –parent 42 ie task list –tree
Fields
Delete
Delete a task
Examples: ie task delete 42 ie task delete 42 –cascade
Fields
Start
Start working on a task (sets status to doing and focuses it)
Examples: ie task start 42 ie task start 42 –description “Starting with validation layer”
Fields
Done
Mark a task as done
Examples: ie task done # Complete current focused task ie task done 42 # Focus task 42 then complete it
Fields
Next
Suggest the next task to work on
Uses context-aware priority: subtasks of focused task first, then top-level tasks, based on priority ordering.
Examples: ie task next
Trait Implementations§
Source§impl Clone for TaskCommands
impl Clone for TaskCommands
Source§fn clone(&self) -> TaskCommands
fn clone(&self) -> TaskCommands
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl FromArgMatches for TaskCommands
impl FromArgMatches for TaskCommands
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 TaskCommands
impl Subcommand for TaskCommands
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 subcommandAuto Trait Implementations§
impl Freeze for TaskCommands
impl RefUnwindSafe for TaskCommands
impl Send for TaskCommands
impl Sync for TaskCommands
impl Unpin for TaskCommands
impl UnsafeUnpin for TaskCommands
impl UnwindSafe for TaskCommands
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more