Skip to content
ConsoleMonster
Class

PaletteCommand

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

One entry of the command palette.

Inheritance

  • object
  • PaletteCommand

Usage

Explore 3 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 2

Accepted by parameters 1

Constructors

public PaletteCommand(string title, Action<MenuContext> invoke) #

Creates a command.

Parameters

title string required
The title (what the filter matches).
invoke System.Action<ConsoleMonster.Interactive.MenuContext> required
What it does.

Properties

public string Title { get; } #

The title.

public string? Category { get; set; } #

Where it comes from or leads ("Go to", "Preset", a path), shown muted.

public string? Description { get; set; } #

A sentence shown while focused.

public string? Keys { get; set; } #

A key hint shown at the right.

public Action<MenuContext> Invoke { get; } #

What it does.