Documentation
¶
Overview ¶
Package board holds the logic for making a freshly created board private and telling the agents that work in this repository about it. It depends only on the stdlib so both internal/cli and internal/tui can call it without a cycle.
Index ¶
- Constants
- func AddIgnore(root string) (changed bool, err error)
- func AddLanesIgnore(root string) (changed bool, err error)
- func AnnounceInAgentFiles(root string) (written []string, err error)
- func Ignored(root string) bool
- func RemoveIgnore(root string) (changed bool, err error)
- func RemoveLanesIgnore(root string) (changed bool, err error)
- type Prepared
Constants ¶
const IgnoreLine = "/.jaira/"
IgnoreLine is the entry that keeps a board private.
const LanesIgnoreLine = "/.jaira/lanes/"
LanesIgnoreLine keeps a project's own lane directory out of git even once the rest of the board is shared. .jaira/lanes/ is scoped to this machine (see D-03) and was never meant to reach a teammate. This is an ordinary ignore rule on a path outside any ignored tree, not a negation pattern: by the time this line matters, RemoveIgnore has already stopped ignoring .jaira/ itself, so there is no ignored parent to negate out of.
Variables ¶
This section is empty.
Functions ¶
func AddLanesIgnore ¶
AddLanesIgnore keeps this project's lane directory private, independent of whether the rest of the board is shared. Idempotent: calling it again once the line is already present reports changed=false and writes nothing.
func AnnounceInAgentFiles ¶
AnnounceInAgentFiles writes the note into each agent instruction file.
func RemoveIgnore ¶
RemoveIgnore stops excluding the board.
func RemoveLanesIgnore ¶
RemoveLanesIgnore removes the lanes-only ignore line. Used by 'share --undo': once the whole board is private again, /.jaira/ already covers .jaira/lanes/, and a leftover line would be a puzzle for the next reader.