Skip to main content

Module hooks

Module hooks 

Source

Re-exports§

pub use crate::constants::HOOK_EVENTS;

Structs§

HookEntry
A single hook entry.

Functions§

add_hook
Add a new hook for an event.
get_hooks
Get hooks for a specific event.
load_hooks_config
Load hooks configuration from the repository.
normalize_event_name
Normalize hook event names: accept kebab-case aliases. e.g., “post-create” → “worktree.post_create”, “pre-merge” → “merge.pre”
remove_hook
Remove a hook by event and ID.
run_hooks
Run all enabled hooks for an event.
save_hooks_config
Save hooks configuration.
set_hook_enabled
Enable or disable a hook.