Package-level declarations

Types

Link copied to clipboard
data class Command(val program: String, val args: List<String>? = null, val showStdout: Boolean = true, val showStderr: Boolean = true, val trim: Boolean = false)
Link copied to clipboard
class CommandBuilder(logger: Logger, program: String)
Link copied to clipboard
annotation class CommandDsl
Link copied to clipboard
data class CommandOutput(val stdout: String?, val stderr: String? = null)
Link copied to clipboard
data class CommandResult(val exitCode: Int, val output: CommandOutput)

Functions

Link copied to clipboard
context(logger: Logger)
fun command(program: String, builder: CommandBuilder.() -> Unit): CommandResult
Link copied to clipboard
context(logger: Logger)
actual fun executeCommand(command: Command): CommandResult
context(logger: Logger)
actual fun executeCommand(command: Command): CommandResult

JS stub for external command execution. Always returns a failure result because shell commands are not available in the browser.

context(logger: Logger)
actual fun executeCommand(command: Command): CommandResult
context(logger: Logger)
actual fun executeCommand(command: Command): CommandResult
context(logger: Logger)
actual fun executeCommand(command: Command): CommandResult
context(logger: Logger)
actual fun executeCommand(command: Command): CommandResult

WasmJs stub for external command execution. Always returns a failure result because shell commands are not available in the browser.