add
gest task note add: add a note to a task.struct Command
pub struct CommandAdd a note to a task.
| Field | Type | Description |
|---|---|---|
id |
String | The task ID or prefix. |
body |
String | The note body (use - to open $EDITOR). |
agent |
Option<String> | Set the author (agent) identifier for this note. |
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>Create a new note on the resolved task, resolving the author from flags or git identity.
| 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. |