Skip to main content

run

Function run 

Source
pub fn run(opts: RunOptions<'_>) -> Result<RunResult, Error>
Expand description

Port of std.process.Child.run — blocking spawn that captures stdout/stderr.

The argv/envp marshalling mirrors std.process.Child.spawnPosix: each arg is NUL-terminated, the array is NULL-terminated, and env entries are flattened to KEY=VALUE\0.