execute_script

Function execute_script 

Source
pub fn execute_script(
    runner: Runner,
    script: &str,
    args: &[String],
    project_dir: &Path,
    dry_run: bool,
) -> Result<ExecutionResult>
Expand description

Execute a script with the given runner.

This is the low-level execution function that spawns the process.

§Arguments

  • runner - The package manager to use
  • script - The script name to run
  • args - Additional arguments to pass to the script
  • project_dir - The project directory to run in
  • dry_run - If true, print the command without executing

§Errors

Returns an error if the script fails to execute.