Documentation
¶
Overview ¶
Package agyhooks checks agy's hooks.json against the shape agy accepts. agy (1.4.x) parses the whole file at once and drops every hook in it when any one entry is malformed, so one stale entry of someone else's leaves beekeeper's own PreInvocation and PreToolUse hooks unloaded: an agy worker then runs with no guard at all.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntryRejects ¶
func EntryRejects(raw json.RawMessage) string
EntryRejects is why agy refuses the named hook entry raw, an object of event lists (or null) and optional enabled metadata, or "" when agy accepts it. Unknown fields are ignored. A tool event's items are matchers with optional hooks, a lifecycle event's items are command hooks, and every hook of type "command" (or of no type) names its command.
Types ¶
This section is empty.