chainabit goals update
Published (2.2.0)
This command is not included in Published (2.2.0). It is available in Development (2.2.0).
Development (2.2.0)
Revise a goal
Synopsis
chainabit goals update <id> --revision <n> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<id> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--success-criteria <text> | Success criteria | — |
--deadline <datetime> | Deadline | — |
--revision <n> | Goal revision you last read. Required. | — |
--objective <text> | Objective | — |
--clear-deadline | Remove the deadline | — |
--clear-success-criteria | Remove the success criteria | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Revises the goal with the given ID. --revision is required and must be the revision you last read with chainabit goals get (a whole number of 1 or more). Give at least one change: --objective, --success-criteria or --deadline to set a value, or --clear-deadline or --clear-success-criteria to remove one. A field you do not mention keeps its current value. You cannot combine --deadline with --clear-deadline, or --success-criteria with --clear-success-criteria.
If the goal has moved on since the revision you name, the command refuses with a conflict instead of overwriting the newer revision; read the goal again and repeat the change. A successful update creates the next revision of the goal. The command asks for no confirmation and has no --yes flag.
Output
The revised goal: ID, objective, status, revision, success criteria and deadline. With --json the record contains id, revision, objective, successCriteria and deadline; revision is one higher than before.
Authentication and permissions
You must be signed in.
Examples
chainabit goals update 00000000-0000-4000-8000-000000000001 --revision 1 --objective "Publish revised notes"
chainabit goals update 00000000-0000-4000-8000-000000000001 --revision 2 --success-criteria "Reviewed notes"
chainabit goals update 00000000-0000-4000-8000-000000000001 --revision 3 --clear-deadline --clear-success-criteria --json