@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface SpawnOptions

    Options for SpawnService.spawn.

    interface SpawnOptions {
        cwd?: string;
        longRunning?: boolean;
        mode?: "inherit" | "wrapped" | "ignore";
        onOutput?: (line: string, stream: "stdout" | "stderr") => void;
        timeoutMs?: number;
    }
    Index
    cwd?: string

    The working directory for the spawned process. Defaults to the current process's working directory.

    longRunning?: boolean

    Whether to enter long-running shutdown mode for the duration of the spawn, so a single Ctrl-C gracefully terminates the spawned process rather than immediately exiting the CLI. Defaults to true.

    mode?: "inherit" | "wrapped" | "ignore"

    "inherit" (default) lets the spawned process write directly to stdout/stderr. "wrapped" captures both streams line-by-line and invokes onOutput for each line instead, without writing anything itself. "ignore" discards both streams entirely - nothing is written and onOutput is never invoked.

    onOutput?: (line: string, stream: "stdout" | "stderr") => void

    Invoked with each line captured from the spawned process. Only used when mode is "wrapped".

    timeoutMs?: number

    If specified, the spawned process is aborted (SIGTERM, followed by SIGKILL if it has not exited after a grace period) if it has not exited within this many milliseconds. Defaults to unbounded.