ShellCommandExecutor

Shell command executor using platform-specific shells (cmd.exe on Windows, sh on Unix).

Inheritors

Types

Link copied to clipboard
data class ExecutionResult(val output: String, val exitCode: Int?)

Command execution result.

Functions

Link copied to clipboard
abstract suspend fun execute(command: String, workingDirectory: String?, timeoutSeconds: Int): ShellCommandExecutor.ExecutionResult

Executes a command and captures what it prints.