pub fn run_hook(
repo_root: &Path,
hook_name: &str,
env: &HashMap<String, String>,
) -> Result<HookResult, HookError>Expand description
Run a hook script and capture its output.
Returns HookResult with the exit code and captured stdout/stderr.