Skip to main content

Module hooks

Module hooks 

Source
Expand description

Hook execution for sr lifecycle events.

Runs configured shell commands at sr lifecycle boundaries. Hook context is passed as JSON via stdin so commands can act on structured data.

Structs§

HookContext
Context passed to hook commands as JSON on stdin.

Functions§

run_commands
Run a list of shell commands with environment variables.
run_post_release
Run post_release hooks from a HooksConfig.
run_pre_release
Run pre_release hooks from a HooksConfig.
run_shell
Run a shell command (sh -c), optionally piping data to stdin and/or injecting environment variables.