(program: SpawnProgram, args: readonly string[], options?: SpawnCallOptions | undefined): Promise<SpawnCaptured> import {spawn_capture} from '@fuzdev/fuz_repos/spawn_capture.js'; Runs program, capturing its stdout and stderr with stdin inherited. The inherited
stream keeps the child in the terminal's session, so unlike SpawnProgram.out,
/dev/tty still reaches ssh, a credential helper, or a pinentry. A process the program
leaves running that still holds a pipe is cut off after a bounded wait, unreported, so its
later output is lost.
program
SpawnProgramargs
the arguments after argv[0]
readonly string[]options?
SpawnCallOptionsreturns
Promise<SpawnCaptured>
throws
- `SpawnError` - if the program can't start