Skip to content
ConsoleMonster

API Reference

Class

PaletteCommand

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 System.String requiredposition: 0
The title (what the filter matches).
invoke System.Action<ConsoleMonster.Interactive.MenuContext> requiredposition: 1
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.