Result

data class Result(val command: String, val exitCode: Int?, val output: String)(source)

Result of attempting to run a command.

Constructors

Link copied to clipboard
constructor(command: String, exitCode: Int?, output: String)

Properties

Link copied to clipboard

The command string that was run (or denied)

Link copied to clipboard

The exit code returned by the process, or null if the command never started

Link copied to clipboard

Everything the command printed to the screen, or an explanation if it didn't run (e.g., "Command timed out", "denied by user")

Functions

Link copied to clipboard

Formats this result like a terminal session.