pub const RunOptions = struct argv: []const []const u8stderr_limit: Io.Limit = .unlimitedstdout_limit: Io.Limit = .unlimitedreserve_amount: usize = 64How many bytes to initially allocate for stderr and stdout.
cwd: Child.Cwd = .inheritSet to change the current working directory when spawning the child process.
environ_map: ?*const Environ.Map = nullReplaces the child environment when provided. The PATH value from here is not used to resolve argv[0]; that resolution always uses parent environment.
expand_arg0: ArgExpansion = .no_expandprogress_node: std.Progress.Node = std.Progress.Node.noneWhen populated, a pipe will be created for the child process to communicate progress back to the parent. The file descriptor of the write end of the pipe will be specified in the ZIG_PROGRESS environment variable inside the child process. The progress reported by the child will be attached to this progress node in the parent process.
The child's progress tree will be grafted into the parent's progress tree, by substituting this node with the child's root node.
create_no_window: bool = trueWindows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.
disable_aslr: bool = falseDarwin-only. Disable ASLR for the child process.
timeout: Io.Timeout = .none467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495pub const RunOptions = struct {
argv: []const []const u8,
stderr_limit: Io.Limit = .unlimited,
stdout_limit: Io.Limit = .unlimited,
/// How many bytes to initially allocate for stderr and stdout.
reserve_amount: usize = 64,
/// Set to change the current working directory when spawning the child process.
cwd: Child.Cwd = .inherit,
/// Replaces the child environment when provided. The PATH value from here
/// is not used to resolve `argv[0]`; that resolution always uses parent
/// environment.
environ_map: ?*const Environ.Map = null,
expand_arg0: ArgExpansion = .no_expand,
/// When populated, a pipe will be created for the child process to
/// communicate progress back to the parent. The file descriptor of the
/// write end of the pipe will be specified in the `ZIG_PROGRESS`
/// environment variable inside the child process. The progress reported by
/// the child will be attached to this progress node in the parent process.
///
/// The child's progress tree will be grafted into the parent's progress tree,
/// by substituting this node with the child's root node.
progress_node: std.Progress.Node = std.Progress.Node.none,
/// Windows-only. Sets the CREATE_NO_WINDOW flag in CreateProcess.
create_no_window: bool = true,
/// Darwin-only. Disable ASLR for the child process.
disable_aslr: bool = false,
timeout: Io.Timeout = .none,
}