Documentation
¶
Overview ¶
Package hooks provides a hook system for extensibility. Hooks are executable scripts in .beads/hooks/ that run after certain events.
Index ¶
Constants ¶
View Source
const ( EventCreate = "create" EventUpdate = "update" EventClose = "close" )
Event types
View Source
const ( HookOnCreate = "on_create" HookOnUpdate = "on_update" HookOnClose = "on_close" )
Hook file names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner handles hook execution
func NewRunner ¶
NewRunner creates a new hook runner. hooksDir is typically .beads/hooks/ relative to workspace root.
func NewRunnerFromWorkspace ¶
NewRunnerFromWorkspace creates a hook runner for a workspace.
func (*Runner) HookExists ¶
HookExists checks if a hook exists for an event
Click to show internal directories.
Click to hide internal directories.