pub fn run_script(
runner: Runner,
script: &Script,
args: Option<&str>,
dry_run: bool,
) -> Result<i32>Expand description
Run a single script with the given runner.
§Arguments
runner- The package manager to usescript- The script to runargs- Optional additional arguments to pass to the scriptdry_run- If true, print the command without executing
§Returns
Returns the exit code of the script (0 for success, non-zero for failure). Returns 130 if interrupted by Ctrl+C.
§Errors
Returns an error if the script fails to spawn.