コンテンツにスキップ

SpawnOptions

このコンテンツはまだ日本語訳がありません。

SpawnOptions = object

Defined in: src/core/adapters.ts:19

Options for spawning a process

Properties

argv

argv: string[]

Defined in: src/core/adapters.ts:21

Command and arguments (first element is the command)


cwd?

optional cwd: string

Defined in: src/core/adapters.ts:35

Working directory


env?

optional env: Record<string, string>

Defined in: src/core/adapters.ts:23

Additional environment variables


inheritEnv?

optional inheritEnv: boolean

Defined in: src/core/adapters.ts:33

Whether to merge the parent process environment underneath env.

  • true (default when omitted): the parent environment is merged underneath env, so the child inherits the full parent environment with env overrides on top.
  • false: the child receives only the variables in env (and nothing from the parent process). This prevents implicit environment variable traversal — used by CliRunner, which resolves the inherited variables itself.

killSignal?

optional killSignal: "SIGTERM" | "SIGKILL"

Defined in: src/core/adapters.ts:39

Kill signal to use when aborting (default: SIGTERM)


signal?

optional signal: AbortSignal

Defined in: src/core/adapters.ts:37

AbortSignal for cancellation