Documentation
¶
Overview ¶
Package hooks provides a system for executing scripts on task events.
Index ¶
Constants ¶
View Source
const ( EventTaskBlocked = "task.blocked" EventTaskDone = "task.done" EventTaskFailed = "task.failed" EventTaskStarted = "task.started" )
Event types for hooks
Variables ¶
This section is empty.
Functions ¶
func DefaultHooksDir ¶
func DefaultHooksDir() string
DefaultHooksDir returns the default hooks directory path.
func EnsureHooksDir ¶
EnsureHooksDir creates the hooks directory if it doesn't exist.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner executes hooks for task events.
func (*Runner) OnStatusChange ¶
OnStatusChange triggers appropriate hooks based on status transition.
Click to show internal directories.
Click to hide internal directories.