task

gest task subcommand tree for creating, listing, and managing tasks.
Name Summary
block gest task block: mark a task as blocking another task (shortcut for task link <id> <blocked> --rel blocks).
cancel gest task cancel: cancel a task.
claim gest task claim: claim a task (assign to self and mark in-progress).
complete gest task complete: mark a task as done.
create gest task create: create a new task.
delete gest task delete: delete a task and all of its dependent rows.
link gest task link: link a task to another entity.
list gest task list: list tasks in the current project.
meta task meta subcommand tree for reading and writing task metadata.
note task note subcommand tree for managing notes attached to tasks.
priority Shared --priority value parser for the task create and task update commands.
show gest task show: show a task by ID or prefix.
tag gest task tag: add a tag to a task.
unlink gest task unlink: remove a relationship between a task and another entity.
untag gest task untag: remove a tag from a task.
update gest task update: update a task.

struct Command

source

pub struct Command

Manage tasks.

Field Type Description
subcommand Sub The subcommand to run.

Implements FromArgMatches, Args, Debug.

Command::call

source

pub async fn call(&self, context: &AppContext) -> Result<(), Error>

Dispatch to the matched task subcommand.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> The result of the subcommand that ran.

enum Sub

source

enum Sub

The subcommands of gest task, one variant for each.

Variant Description
Block(block::Command) Mark a task as blocking another task.
Cancel(cancel::Command) Cancel a task.
Claim(claim::Command) Claim a task (assign and mark in-progress).
Complete(complete::Command) Mark a task as done.
Create(create::Command) Create a new task.
Delete(delete::Command) Delete a task and its dependent rows.
Link(link::Command) Link a task to another entity.
List(list::Command) List tasks.
Meta(meta::Command) Get or set custom metadata.
Note(note::Command) Manage notes on a task.
Show(show::Command) Show a task.
Tag(tag::Command) Add a tag to a task.
Unlink(unlink::Command) Remove a relationship from a task.
Untag(untag::Command) Remove a tag from a task.
Update(update::Command) Update a task.

Implements Debug, FromArgMatches, Subcommand.