API Reference
Phases
A step strip for pipelines: ✓ Restore 2.1s › ✓ Build 12s › ⠹ Test 64% › ○ Pack. The active phase is emphasised; phases flow onto more lines when the width is short. Live operations (Key = phase): add (Text = label), state (State, Text = detail), detail (Text).
Inheritance
- LiveWidget
- Phases
Usage
Explore 1 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 1
- Method Phases.Set
Constructors
public Phases(String name = "phases") #Creates a phases widget.
Parameters
- name System.String = "phases"
- The live name (default phases).
Methods
public override Void Apply(LiveEvent liveEvent) #VoidApplies an event to the widget's state.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event.
public override String? Describe(LiveEvent liveEvent) #String?Returns a line describing the event for line-based outputs (Stream/Plain), or null when the event is not worth a line (for example a single counter increment). Called after ILiveTarget.Apply.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event that was applied.
Returns
A plain line or null.
public PhasesHandle Handle(ILiveDispatcher dispatcher) #PhasesHandleReturns a handle that updates the phases through a dispatcher.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
Returns
The handle.
public override Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public override Void Render(Region region, RenderContext context) #VoidRenders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public Phases Set(String key, StatusKind status = Pending, String? label = null, String? detail = null) #PhasesAdds a phase or updates its status.
Parameters
- key System.String
- Unique key (also the label when label is null).
- status ConsoleMonster.Styling.StatusKind = Pending
- Status.
- label System.String? = null
- Label (markup), or null.
- detail System.String? = null
- Detail (duration, percentage), or null.
Returns
This instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?