CommandResult class

The result of running a DispatchCommand on a leased compute slot.

Annotations
  • @immutable

Constructors

CommandResult({required int exitCode, required String stdout, required String stderr, required int durationMs})
Creates a result.
const

Properties

durationMs → int
Wall-clock duration in milliseconds.
final
exitCode → int
The process exit code.
final
hashCode → int
The hash code for this object.
no setterinherited
ok → bool
Whether the command succeeded (exit 0).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stderr → String
Captured stderr.
final
stdout → String
Captured stdout.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
JSON form.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> j) → CommandResult
Parses j.