Divooka Reference

Command Result

5 nodes

On this page 5

Error

Function

What the program printed to its error stream, as UTF-8 text, with the line ending after the last line taken off.

Signature
Error(Command Result: Command Result) -> Text
string Error(CommandResult Command Result)

Parameters

nametypedefaultdescription
Command ResultCommand Result—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Command Result
Package
Standard Library

Exit Code

Function

The code the program ended with: 0 by convention when it succeeded, anything else when it did not.

Signature
ExitCode(Command Result: Command Result) -> Integer
int ExitCode(CommandResult Command Result)

Parameters

nametypedefaultdescription
Command ResultCommand Result—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Command Result
Package
Standard Library

Output

Function

What the program printed to its output, as UTF-8 text, with the line ending after the last line taken off.

Signature
Output(Command Result: Command Result) -> Text
string Output(CommandResult Command Result)

Parameters

nametypedefaultdescription
Command ResultCommand Result—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Command Result
Package
Standard Library

Succeeded

Function

Whether the program ended with code 0, which programs use to say they succeeded.

Signature
Succeeded(Command Result: Command Result) -> Truth
bool Succeeded(CommandResult Command Result)

Parameters

nametypedefaultdescription
Command ResultCommand Result—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Command Result
Package
Standard Library

To String

Function

The exit code and what was printed, for showing.

Signature
ToString(Command Result: Command Result) -> Text
string ToString(CommandResult Command Result)

Parameters

nametypedefaultdescription
Command ResultCommand Result—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Command Result
Package
Standard Library