pub fn run_executable(
start_name: Option<&OsStr>,
arguments: &[OsString],
environment: &[(OsString, OsString)],
) -> i32Expand description
What: Dispatch when the start name names a transaction’s entry, otherwise run the wrapper. Why: The executable calls this with its own start name first; every other start name, and an absent one, reaches the ordinary path unchanged.
In TS you’d write (pseudocode):
if (startName is a dispatch) await dispatch(event, args); else await runProcess(args, env);