pub fn run_hook(script: &str, ctx: &HookContext) -> Result<()>Expand description
Render script with ctx, write to a temp file, and execute it.
Stdout and stderr are forwarded to the caller’s terminal.
A non-zero exit code prints a warning but does not return an error.
§Errors
Returns an error if the temp file cannot be written or its permissions cannot be set.