OptionalcwdThe working directory for the spawned process. Defaults to the current process's working directory.
OptionallongWhether 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.
OptionalonInvoked with each line captured from the spawned process. Only used when stdio is
"wrapped".
Optionalstdio"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.
Options for SpawnService.spawn.