update

gest task update: update a task.

struct Command

source

pub struct Command

Update a task.

Field Type Description
id String The task ID or prefix.
assigned_to Option<String> Set the assigned author by name.
description Option<String> Set the task description.
metadata Vec<String> Set a metadata key=value pair (repeatable; supports dot-paths and scalar inference).
metadata_json Vec<String> Merge a JSON object into metadata (repeatable; applied after –metadata pairs).
phase Option<u32> Move the task to a phase within its iteration.
priority Option<u8> Set the task priority; either 0-4 (lower is higher) or one of critical|high|medium|low|lowest.
status Option<TaskStatus> Set the task status.
tag Vec<String> Replace all tags on the task. Repeatable; comma-separated values split into multiple tags.
title Option<String> Set the task title.
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>

Apply field, status, priority, tag, and phase changes to the resolved 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.