CliMode enum
How a program may talk to the person at a terminal, derived from CliCapabilities (CliCapabilities.mode).
Values
- interactive → const CliMode
-
Somebody can answer and output takes ANSI on a terminal: prompts and progress are widgets live in an inline twk app, finished output is committed above them.
- plain → const CliMode
-
Somebody can answer, but output takes no ANSI or is not a terminal (
NO_COLOR,TERM=dumb,TWK_PLAIN=1,--no-color, a pipe): output is written as lines, prompts are asked as plain lines. - nonInteractive → const CliMode
-
Nobody can answer: input is not a terminal, the environment says CI (
CI,BUILD_NUMBERand the rest twk_core'srunsInCireads), or input was refused (--no-input). Output is written as lines, and nothing is read.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.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