create, edit and preview read it from --file or stdin.
List and show
list takes the card definition id, because the API has no call that lists every card. show prints the state of the lifecycle and the steps of its pending definition.
The definition
briefing, applicability and precondition are optional. assertion, precondition and applicability are search predicates.
Error, Warning and Advisory. The API checks the definition and names the field that is wrong.
Try, create and activate
previewtries a definition on a sample of entries and saves nothing.--sample-sizedefaults to25.createsaves the definition as a new lifecycle draft.activateactivates the pending definition and waits until the existing entries are assessed. Progress goes to stderr. Ctrl-C stops the waiting, not the assessment.showtells you whether the lifecycle is stillInitializingorReady.
Change an active lifecycle
Changes go through a pending definition, which does nothing until you activate it:edit replaces the whole pending definition, including anything someone else saved after you ran show. To throw the pending definition away and keep the active revision, run discard:
edit, activate, discard and delete read the lifecycle right before they act and send its version along, so they fail instead of overwriting a lifecycle that changed in between.
Assessments and revisions
assessmentshows what a lifecycle says about one entry, rule by rule. It reads the saved result and assesses nothing. To find entries by how far they have come, useocctoo cards entries search --lifecycle <ID> --state incomplete.revisionshows a definition that was activated. The number is theActive revisionthatshowprints.