block

gest task block: mark a task as blocking another task (shortcut for task link <id> <blocked> --rel blocks).

struct Command

source

pub struct Command

Mark a task as blocking another task (shortcut for task link <id> <blocked> --rel blocks).

Field Type Description
id String The task ID or prefix (the blocker).
blocked String The task being blocked.
output json::Flags The output mode: normal, --json, --quiet or --raw.

Implements FromArgMatches, Args, Debug.

Command::call

source

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

Create a blocks relationship from the source task to the blocked task within a recorded transaction.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> Ok(()) when the command succeeds, or the error that stopped it.