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.
OptionalmodeOptionalonInvoked with each line captured from the spawned process. Only used when mode is
"wrapped".
OptionaltimeoutIf 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.
Options for SpawnService.spawn.