Skip to content
ConsoleMonster
Class

RunBoardFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of RunBoard, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • RunBoardFluent

Methods

public static RunBoard Dashboard(RunBoard runBoard, Action<RunDashboard> configure) #

Configures RunBoard.Dashboard in place: The dashboard that draws the run on a terminal smaller than the board needs, sharing its tracker and log.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
configure System.Action<ConsoleMonster.Widgets.RunDashboard> required
Configures the value.

Returns

RunBoard The same instance.
public static RunBoard HeaderChartBy(RunBoard runBoard, Func<RunSnapshot, IWidget>? value) #

Sets RunBoard.HeaderChart: Builds the chart beside the wordmark from the frame's snapshot, or null (default) for a histogram of the durations of finished items. Its caption shows the throughput and the longest item either way.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value System.Func<ConsoleMonster.Live.RunSnapshot, ConsoleMonster.Layout.IWidget>? required
The callback.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.HeaderChart = value;    runBoard.HeaderChartBy(value);
public static RunBoard ItemsLabel(RunBoard runBoard, string value) #

Sets RunBoard.ItemsLabel: The plural word for the run's items in captions and titles (default "items"), for example "checks" or "tests".

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value string required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.ItemsLabel = value;     runBoard.ItemsLabel(value);
public static RunBoard Parts(RunBoard runBoard, RunBoardParts value) #

Sets RunBoard.Parts: The board's own panels and charts that show (default all).

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value ConsoleMonster.Widgets.RunBoardParts required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Parts = value;          runBoard.Parts(value);
public static RunBoard Stages(RunBoard runBoard, IWidget? value) #

Sets RunBoard.Stages: The stage track drawn under the header (usually Phases), or null for none. A live stage track set after the run has started joins the run's session in place of the previous track, so updates by its widget ids reach the track that is drawn.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value ConsoleMonster.Layout.IWidget? required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Stages = value;         runBoard.Stages(value);
public static RunBoard Subtitle(RunBoard runBoard, string? value) #

Sets RunBoard.Subtitle: A literal subtitle under the wordmark (the target, the configuration), or null.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value string? required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Subtitle = value;       runBoard.Subtitle(value);
public static RunBoard Title(RunBoard runBoard, string value) #

Sets RunBoard.Title: The run name, shown as literal text when there is no RunBoard.Wordmark and in the compact header.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value string required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Title = value;          runBoard.Title(value);
public static RunBoard Version(RunBoard runBoard, string? value) #

Sets RunBoard.Version: The product version under the wordmark (literal, for example "v1.0.0"), or null.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value string? required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Version = value;        runBoard.Version(value);
public static RunBoard Wordmark(RunBoard runBoard, IWidget? value) #

Sets RunBoard.Wordmark: The product's wordmark (a Logo or any widget up to five rows tall), or null for the title as text. A live widget set after the run has started joins the run's session in place of the previous wordmark.

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value ConsoleMonster.Layout.IWidget? required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Wordmark = value;       runBoard.Wordmark(value);
public static RunBoard Workers(RunBoard runBoard, int value) #

Sets RunBoard.Workers: The most items that run at once (the worker count), or 0 (default) when unknown. When set, the running list reads "3 of 4 workers busy".

Parameters

runBoard ConsoleMonster.Widgets.RunBoard required
The instance.
value int required
The value.

Returns

RunBoard The same instance.

Examples

// C# initializer or property    // C# fluent
runBoard.Workers = value;        runBoard.Workers(value);