ActionResult¶
The results of an Action which includes its exit code, out and err streams as Strings, and and error message if the Action failed.
Constructors¶
ok¶
new val ok(
exit_status': (Exited val | Signaled val),
stdout': String val,
stderr': String val)
: ActionResult val^
Parameters¶
Returns¶
- ActionResult val^
fail¶
new val fail(
errmsg': String val,
exit_status': (Exited val | Signaled val) = call,
stdout': String val = "",
stderr': String val = "")
: ActionResult val^
Parameters¶
- errmsg': String val
- exit_status': (Exited val | Signaled val) = call
- stdout': String val = ""
- stderr': String val = ""
Returns¶
- ActionResult val^
Public fields¶
let exit_status: (Exited val | Signaled val)¶
let stdout: String val¶
let stderr: String val¶
let errmsg: (String val | None val)¶
Public Functions¶
exit_code¶
Returns¶
- I32 val
print_to¶
Parameters¶
- out: OutStream tag
Returns¶
- None val
successful¶
Returns¶
- Bool val