Skip to content

ActionResult

[Source]

The results of an Action which includes its exit code, out and err streams as Strings, and and error message if the Action failed.

class val ActionResult

Constructors

ok

[Source]

new val ok(
  exit_status': (Exited val | Signaled val),
  stdout': String val,
  stderr': String val)
: ActionResult val^

Parameters

Returns


fail

[Source]

new val fail(
  errmsg': String val,
  exit_status': (Exited val | Signaled val) = call,
  stdout': String val = "",
  stderr': String val = "")
: ActionResult val^

Parameters

Returns


Public fields

let exit_status: (Exited val | Signaled val)

[Source]


let stdout: String val

[Source]


let stderr: String val

[Source]


let errmsg: (String val | None val)

[Source]


Public Functions

exit_code

[Source]

fun val exit_code()
: I32 val

Returns


[Source]

fun val print_to(
  out: OutStream tag)
: None val

Parameters

Returns


successful

[Source]

fun box successful()
: Bool val

Returns