Skip to content

Type Alias: StdioOption

StdioOption = ExecStdio | LineHandler | "capture" | (LineHandler | "capture")[]

Stdio config for one fd.

  • "inherit" / "pipe" / "ignore" — pass through to spawn
  • "capture" — pipe the fd and append each line to the result
  • LineHandler — pipe and invoke the handler per line (lines are still captured)
  • (LineHandler | "capture")[] — pipe; "capture" is a no-op marker, handlers run per line