StdioConfig

data class StdioConfig(stdin: Any = PIPE, stdout: Any = PIPE, stderr: Any = PIPE)

Standard I/O Configuration

Describes the standard I/O configuration for a child process, including modes for standard input, output, and error.

Each mode can be one of the following:

  • pipe: Pipe the underlying stream to the child process.

  • inherit: Inherit the underlying stream from the parent process.

Constructors

Link copied to clipboard
constructor(stdin: Any = PIPE, stdout: Any = PIPE, stderr: Any = PIPE)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun applyTo(processBuilder: ProcessBuilder): ProcessBuilder

Apply this standard I/O configuration to a given ProcessBuilder.