Skip to main content

Module block

Module block 

Source
Expand description

opys block / opys unblock — record a directional blocker relationship between two documents of any type, through the corpus store.

Marking <id> blocked by <by> writes <by> into <id>’s blocked_by map and <id> into <by>’s blocks map (the bidirectional link). When the blocked document’s type has a blocked status, it is auto-set — the blocker link itself serves as the blocked_reason.

Functions§

block
Mark one or more documents as blocked by by, linking both directions.
block_core
Mark id as blocked by by, linking both directions. Does not flush/print/ sync — the shared core for the CLI wrapper and the TUI.
unblock
Remove the blocker link from both sides for one or more documents.
unblock_core
Remove the blocker link from both sides. When the blocked document’s type has a blocked status, is left at blocked with no remaining blockers and no free-text blocked_reason, its status reverts to in-progress. Does not flush/print/sync — the shared core for the CLI wrapper and the TUI.