CommandResult class sealed
The result of running a command (FR-001, FR-008).
A handler returns a CommandResult that CliApp translates into the
contract's exit code and the chosen output format (text or JSON). The
outcome field drives the JSON shape: 'success' for SuccessResult,
'error' for ErrorResult, 'warning' for WarningResult.
- Implementers
- Annotations
Properties
- exitCode → int
-
The contract exit code this result maps to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- outcome → String
-
One of
'success','error','warning'— drives the JSON$outcomefield.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited