Shell.CommandOutput
class Shell.CommandOutput
The output of a shell command executed via Shell.command
. This class offers access to the stdOut
and stdErr
of the launched command, with utility methods to wait for the full output or parse the stream incrementally.
Summary
Public constructors |
---|
CommandOutput(command: String, shellProcess: ShellProcess) |
Public properties |
|
---|---|
String |
Awaits the process termination and returns the full stderr of the launched command. |
InputStream |
Allows incrementally consuming the stderr of a single command as an |
String |
Awaits the process termination and returns the full stdout of the launched command. |
InputStream |
Allows incrementally consuming the stdout of a single command as an |
Public constructors
Public functions
isRunning
fun isRunning(): Boolean
Returns whether the launched shell command is still running.
Public properties
stdErr
val stdErr: String
Awaits the process termination and returns the full stderr of the launched command.
stdErrStream
val stdErrStream: InputStream
Allows incrementally consuming the stderr of a single command as an InputStream
.
stdOut
val stdOut: String
Awaits the process termination and returns the full stdout of the launched command.
stdOutStream
val stdOutStream: InputStream
Allows incrementally consuming the stdout of a single command as an InputStream
.