Skip to main content

TaskCommands

Enum TaskCommands 

Source
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

§name: String

Task name

§description: Option<String>

Task description/spec (markdown supported)

§parent: Option<i64>

Parent task ID (0 = root task, omit = auto-parent to current focus)

§status: String

Initial status (default: todo)

§priority: Option<i32>

Priority (1=critical, 2=high, 3=medium, 4=low)

§owner: String

Task owner (default: human)

§metadata: Vec<String>

Metadata key=value pairs (e.g., –metadata type=epic –metadata tag=auth)

§blocked_by: Vec<i64>

IDs of tasks that block this task (this task depends on them)

§blocks: Vec<i64>

IDs of tasks that this task blocks (they depend on this task)

§format: String

Output format (text or json)

§

Get

Get task details

Examples: ie task get 42 ie task get 42 –with-events ie task get 42 –with-context

Fields

§id: i64

Task ID

§with_events: bool

Include event history

§with_context: bool

Include full context (ancestors, siblings, children, dependencies)

§format: String

Output format (text or json)

§

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

§id: i64

Task ID

§name: Option<String>

New task name

§description: Option<String>

New description/spec

§status: Option<String>

New status (todo, doing, done)

§priority: Option<i32>

New priority (1=critical, 2=high, 3=medium, 4=low)

§active_form: Option<String>

New active form text

§owner: Option<String>

New owner

§parent: Option<i64>

New parent task ID (0 = make root task)

§metadata: Vec<String>

Metadata key=value pairs to merge (key= to delete)

§add_blocked_by: Vec<i64>

Add dependency: this task is blocked by these task IDs

§add_blocks: Vec<i64>

Add dependency: this task blocks these task IDs

§rm_blocked_by: Vec<i64>

Remove dependency: remove blocked-by relationship

§rm_blocks: Vec<i64>

Remove dependency: remove blocks relationship

§format: String

Output format (text or json)

§

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

§status: Option<String>

Filter by status (todo, doing, done)

§parent: Option<i64>

Filter by parent ID (0 = root tasks only)

§sort: Option<String>

Sort by (id, priority, time, focus_aware)

§limit: Option<i64>

Maximum number of results

§offset: Option<i64>

Result offset for pagination

§tree: bool

Show as hierarchical tree

§format: String

Output format (text or json)

§

Delete

Delete a task

Examples: ie task delete 42 ie task delete 42 –cascade

Fields

§id: i64

Task ID

§cascade: bool

Also delete all descendant tasks

§format: String

Output format (text or json)

§

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

§id: i64

Task ID

§description: Option<String>

Update description before starting

§format: String

Output format (text or json)

§

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

§id: Option<i64>

Task ID (optional, defaults to current focused task)

§format: String

Output format (text or json)

§

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

Fields

§format: String

Output format (text or json)

Trait Implementations§

Source§

impl Clone for TaskCommands

Source§

fn clone(&self) -> TaskCommands

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,