OutputFormat class
The output format renderer for the standard CLI contract (FR-008).
Constructors
- OutputFormat()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detect(
bool isTty) → OutputFormatKind - Auto-detect the appropriate output format for the current process.
-
json(
CommandResult result, {CliContract contract = CliContract.standard}) → String - Render a CommandResult as a single-line JSON string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plain(
CommandResult result) → String -
Render a CommandResult as plain text with no emoji and no ANSI color
codes. Used by
zfa route verify --plainand any other command that needs byte-identical output across runs in CI logs. -
text(
CommandResult result) → String - Render a CommandResult as a human-readable multi-line string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited