Skip to main content

Module ticket_notes

Module ticket_notes 

Source
Expand description

The kranz ticket note|notes surface (D-BW-3, adopted from beads): environment concerns (note author) and terminal rendering over kranz_engine::ticket_notes, which owns storage, the append-only durability idiom, and the draft-context folding — so every surface (CLI today, REST/Slack later) shares one implementation.

Functions§

cmd_ticket_note
kranz ticket note <slug> <text...>: append one note to the ticket’s discussion. Refuses on an unknown ticket (a typo’d slug must not orphan a notes sidecar with no ticket behind it).
cmd_ticket_notes
kranz ticket notes <slug>: print the discussion chronologically.
note_author
The author for a new note: $KRANZ_NOTE_AUTHOR when set and non-blank, else "operator".
render_ticket_notes
Render the notes listing: one <ts> <author>: <text> line per note, in file order (== chronological order).