Skip to content

Process Options

1 min read

Import: import system.process;

Read the process guide for launch settings, cancellation, and streaming ownership.

ProcessOptions

Process launch settings, snapshotted before the launch operation is submitted.

public class ProcessOptions

cwd

Working directory; empty inherits the parent directory.

public cwd: string

env

Environment overrides applied after the inherited environment.

public env: Map<string, string>

clear_env

Starts with an empty environment when true.

public clear_env: bool

timeout_ms

Wall-clock deadline in milliseconds; zero disables the deadline.

public timeout_ms: int

max_output_bytes

Maximum captured bytes per output stream for run; defaults to 8 MiB.

public max_output_bytes: int

input

Bytes written to stdin by run before closing the input pipe.

public input: byte[]

constructor

Creates options that inherit the environment and directory with empty stdin.

public constructor()