Skip to content
ConsoleMonster
Interface

IPromptSegment

ConsoleMonster.Prompts

Namespace
ConsoleMonster.Prompts
Assembly
ConsoleMonster
Modifiers
abstract

A segment provider in the shell prompt.

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.

Accepted by parameters 1

Methods

public abstract PromptSegmentValue? Evaluate(PromptContext context, PromptSegmentOptions options) #

Returns the value for the context, or null when the segment has nothing to show.

Parameters

context ConsoleMonster.Prompts.PromptContext required
options ConsoleMonster.Prompts.PromptSegmentOptions required

Properties

public abstract string Name { get; } #

The segment name in the configuration.

public abstract PromptSegmentKind Kind { get; } #

The scheduling policy for the provider.