Command reference
oko approvals finish
Ends an item with a final status, `resolved` when none is given.
Invocation#
oko approvals finish <id> [--status STATUS]Inputs and options#
- The item id and the status: one of `queued`, `open`, `processing` (the item still waits) or `resolved`, `done`, `rejected`, `approved`, `deferred`, `delivery_failed` (it no longer does). `oko approvals list --open` lists exactly the waiting ones.
Output and state effect#
- Sets the status and prints the item, or `null` when no item has that id.
Refusals and safe exits#
- `oko approvals finish requires <id>` (exit 2); `oko approvals finish --status "<word>": unknown variant ...` naming the accepted statuses (exit 2). An item stored with a status that is none of these makes the queue unreadable, naming the item's field.