Skip to main content

Module hooks

Module hooks 

Source
Expand description

Shell execution helper.

The only thing in sr that runs user-visible shell commands is the Publish stage — it shells out to cargo publish / npm publish / docker buildx build / uv publish / twine when a typed publisher needs to hit a registry, or to a publish: custom command.

sr intentionally does not run user “hooks” (pre_release, post_release, build). Those belong in the CI workflow around sr plan / sr prepare / sr release, not inside sr.

Functions§

run_shell
Run a shell command (sh -c). Inherits stdio unless stdin_data is provided (in which case stdin is piped). env is injected into the child process; RELSTATE_* / SR_VERSION etc. flow through here.