ShellResult

data class ShellResult(val exitCode: Int, val stdoutBytes: ByteArray, val stderr: String)

Result of a shell invocation. exitCode == 0 is the success convention; tools test it explicitly because some commands return non-zero on success (e.g. pm grant for an unknown permission).

stdoutBytes is the raw byte stream — needed for binary commands like screencap -p which emit PNG bytes. stdout is the UTF-8 decode of those bytes for text use. stderr is always text.

Constructors

Link copied to clipboard
constructor(exitCode: Int, stdoutBytes: ByteArray, stderr: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int