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?
optionalcwd:string
Defined in: src/core/adapters.ts:35
Working directory
env?
optionalenv:Record<string,string>
Defined in: src/core/adapters.ts:23
Additional environment variables
inheritEnv?
optionalinheritEnv: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 underneathenv, so the child inherits the full parent environment withenvoverrides on top.false: the child receives only the variables inenv(and nothing from the parent process). This prevents implicit environment variable traversal — used by CliRunner, which resolves the inherited variables itself.
killSignal?
optionalkillSignal:"SIGTERM"|"SIGKILL"
Defined in: src/core/adapters.ts:39
Kill signal to use when aborting (default: SIGTERM)
signal?
optionalsignal:AbortSignal
Defined in: src/core/adapters.ts:37
AbortSignal for cancellation