pub fn run_version_hook(
cmd: &str,
vars: &VersionVariables,
work_dir: &Path,
dry_run: bool,
) -> Result<Option<String>>Expand description
Run the version hook (or --exec-version). Returns the first non-empty line from stdout.
The caller applies the result as next-version and recalculates.