PipeFormat class
The formatting shared by the reporters
Constructors
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
-
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
Static Methods
-
color(
String text, String code, bool useColor) → String -
Wraps the
textin the given ANSIcode, whenuseColoris true -
duration(
Duration d) → String -
Formats a duration as
4.2s,1m 12s, or1h 5m -
outcome(
StepState step) → String -
The short outcome shown after a finished step, e.g.
exited with code 1orskipped, an earlier step has failed -
pad(
String text, int width) → String -
Pads the
textwith spaces to the given number of terminal columns -
summary(
PipeRunResult result) → String -
The one-line summary of a run, e.g.
1 of 7 steps failed, 2 skipped - 2m 10s -
symbol(
StepState step, {required bool useColor}) → String - The symbol showing the status of a finished or pending step
-
terminalLine(
String line) → String - Prepares a line of the output of a command to be shown in the terminal
-
timestamp(
Duration d) → String -
Formats a duration as a fixed-width timestamp, e.g.
[01:12.5] -
title(
PipeRunInfo info) → List< String> - The lines at the top of the output, describing the run