Skip to main content

run_setup_script

Function run_setup_script 

Source
pub async fn run_setup_script(
    script: &Path,
    plugin_dir: &Path,
    log_path: &Path,
    timeout: Duration,
) -> Result<SetupOutcome, SetupError>
Expand description

Run the resolved setup script against plugin_dir, streaming combined stdout+stderr to log_path. Returns on success, exit code, timeout, or I/O error.

The script is invoked as bash <script> (POSIX shells only — no Windows .bat/.ps1 support in v1; plugins on Windows can ship a shim or rely on the native binary already being committed).

cwd is set to plugin_dir so scripts can use relative paths like target/release/....