Skip to content
ConsoleMonster
Enum

StatusKind

ConsoleMonster.Styling

Namespace
ConsoleMonster.Styling
Assembly
ConsoleMonster
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

A status shared by status lists, lanes, phases, tables and logs. Each status has a theme token and a glyph, so status is never shown by colour alone.

Inheritance

  • Enum
  • StatusKind

Usage

Explore 172 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 58

Accepted by parameters 114

Values

public const StatusKind Pending #

Not started.

Value: 0
public const StatusKind Running #

In progress.

Value: 1
public const StatusKind Pass #

Succeeded.

Value: 2
public const StatusKind Fail #

Failed.

Value: 3
public const StatusKind Warn #

Completed with a warning.

Value: 4
public const StatusKind Skip #

Skipped or not applicable.

Value: 5
public const StatusKind Info #

Informational.

Value: 6
public const StatusKind Unknown #

Evidence was not reported or collected.

Value: 7
public const StatusKind None #

No relationship or item exists.

Value: 8
public const StatusKind Error #

The check could not run to a verdict: it threw, timed out or lacked a prerequisite. Distinct from StatusKind.Fail, which is a verdict that something is wrong.

Value: 9
public const StatusKind Investigate #

Needs a human look: the evidence is there, but no automatic verdict applies.

Value: 10
public const StatusKind NotRun #

Deliberately not executed (filtered out, not applicable, a dry run); a reason usually says why.

Value: 11

Extension Methods

public static string ToEnglishWord(StatusKind status) #

The English status word (PASS, FAIL...), for logs and machine-read output.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

string The word.
public static ThemeToken ToToken(StatusKind status) #

Returns the theme token that colours a status.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

ThemeToken The token.
public static Tone ToTone(StatusKind status) #

The tone a status is painted with.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

Tone The tone.
ToWord 3 overloads
public static string ToWord(StatusKind status) #

A short upper-case status word using session-scoped labels, then the active profile's language, then WidgetLabels.Current.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

string The word.
public static string ToWord(StatusKind status, RenderContext context) #

A status word in the render context's language.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.
context ConsoleMonster.Canvas.RenderContext required
The rendering context.

Returns

string The localized word.
public static string ToWord(StatusKind status, TerminalProfile profile) #

A status word in the profile's language, or the current fallback labels when no language is set.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.
profile ConsoleMonster.Capabilities.TerminalProfile required
The rendering profile.

Returns

string The localized word.