set
gest task meta set: set a metadata value on a task at a dot-delimited path.struct Command
pub struct CommandSet a metadata value on a task at a dot-delimited path.
| Field | Type | Description |
|---|---|---|
id |
String | The task ID or prefix. |
path |
String | The dot-delimited metadata path. |
value |
String | The metadata value (auto-detected scalar unless –as-json is set). |
as_json |
bool | Parse the value as a JSON literal instead of auto-detecting. |
output |
json::Flags | The output mode: normal, --json, --quiet or --raw. |
Implements FromArgMatches, Args, Debug.
Command::call
pub async fn call(&self, context: &AppContext) -> Result<(), Error>Write the parsed value into the task’s metadata at the given dot-path 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. |