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

    Interface SpawnOptions

    Options for SpawnService.spawn.

    interface SpawnOptions {
        cwd?: string;
        longRunning?: boolean;
        onOutput?: (line: string, stream: "stdout" | "stderr") => void;
        stdio?: "inherit" | "wrapped";
    }
    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.

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

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

    stdio?: "inherit" | "wrapped"

    "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.