← index

[OS]ProcessResult

inherits Object · defined at core/12-os.qn:31

What a one-shot [OS]Process.run: answers: the child's complete output and how it ended. stdout/stderr decode as UTF-8 (use the …Bytes getters for binary output); ok? is exit code 0, and check turns failure into a typed ProcessError whose payload is this result.

Class methods

of: command:

Internal: wrap the raw result Map primRun:… answers.

core/12-os.qn:34

Instance methods

check

Require success: answers self when the exit code is 0, otherwise throws a ProcessError naming the program and how it ended, with this result as the payload — the Rust-status.success() / Python-check=True idiom.

([OS]Process.run:#( 'true' )).check.ok?    "* -> true

core/12-os.qn:76

command

The command that ran (as given to run:).

core/12-os.qn:64

exitCode

The exit code — nil when a signal ended the child (signal says which).

core/12-os.qn:58

ok?

Whether the child exited 0.

core/12-os.qn:67

s

The inspect string: the program and how it ended.

core/12-os.qn:90

signal

The signal that ended the child, or nil for a normal exit.

core/12-os.qn:61

stderr

The child's standard error, decoded as UTF-8.

core/12-os.qn:49

stderrBytes

The raw standard error.

core/12-os.qn:55

stdout

The child's standard output, decoded as UTF-8.

core/12-os.qn:46

stdoutBytes

The raw standard output (for binary-producing children).

core/12-os.qn:52