Documentation
¶
Overview ¶
Package hook runs trusted lifecycle commands without invoking a shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveCommand ¶
ResolveCommand is used by diagnostics and tests to show the exact executable without executing it.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Run ¶
func (m *Manager) Run(ctx context.Context, event agent.HookEvent, input agent.HookInput) (agent.HookOutput, error)
Run implements agent.Hook. Each hook receives one JSON object on stdin and may return a partial agent.HookOutput object on stdout. A non-zero exit blocks the lifecycle operation, while an empty stdout means no modification.
Click to show internal directories.
Click to hide internal directories.