pub fn run_hooks(
hooks: &BTreeMap<String, String>,
extra_prepare: Option<&str>,
vars: &VersionVariables,
work_dir: &Path,
dry_run: bool,
) -> Result<()>Expand description
Run side-effect hooks (verify/prepare/publish/success) in order.
On failure, runs the fail hook if present and then propagates the error.
extra_prepare is the temporary prepare command supplied via --exec (run after the config’s prepare).