Skip to main content

Module write

Module write 

Source
Expand description

The gate every writing command passes through.

Two rules, from ADR 1:

  • --dry-run prints the request that would be sent and sends nothing.
  • A change that fans out across more than one issue needs --yes. A single issue does not: this is a tool for changing issues, and confirming each one would be theatre rather than safety.

Both paths announce the profile and organisation first. A change applied to the wrong organisation is expensive to reconstruct afterwards, and “which one was I on” should never be a question the output leaves open.

Structs§

Intent
What a write is about to do, in the words the user will see.

Enums§

Gate
Outcome of the gate.

Functions§

check
Announce the write, then decide whether it may proceed.
parse_assignment
Parse a key=value or key:=json pair from --set.