struct

Process::Result

Inherits Struct / Value / Object

EXPERIMENTAL

Constructors

new(status : Status, output : String | Nil, error : String | Nil)
Source

Instance methods

error

Returns the captured error stream or an empty string.

If error was not captured, returns the empty string.

The captured error stream might be truncated. If the total output is larger than 64kB, only the first 32kB and the last 32kB are preserved.

Source
error?

Returns the captured error stream or an empty string.

If error was not captured, returns nil.

The captured error stream might be truncated. If the total output is larger than 64kB, only the first 32kB and the last 32kB are preserved.

Source
output

Returns the captured output stream or an empty string.

If output was not captured, returns the empty string.

Source
output?

Returns the captured output stream.

If output was not captured, returns nil.

Source
status

Returns the status of the process.

Source