update

gest task note update: update a note’s body.

struct Command

source

pub struct Command

Update a note’s body.

Field Type Description
id String The note ID or prefix.
body Option<String> The new body text (use - to open $EDITOR).
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>

Replace the resolved note’s body 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.