CommandInfo
Type Stability: stable
What nabu.commands.list() / get() return: a plain snapshot (the registry is fixed once the editor is built, so it
needs no reactivity; read it again after a keymap change, i.e. a new editor).
Related guide: Commands and keymap →
Definition
TypeScript
import type { CommandInfo } from '@aionbuilders/nabu';TypeScript
interface CommandInfo {
available: boolean;
confirm: CommandConfirm | null;
display: string[];
extension: string;
id: string;
keys: string[];
label: string;
scope: string | undefined;
}Properties
| Property | Type | Description |
|---|---|---|
available | boolean |
|
confirm | CommandConfirm | null | n/a |
display | string[] |
|
extension | string | name of the declaring extension ( |
id | string | n/a |
keys | string[] | the chords bound to the command, as written ( |
label | string | resolved (a label function is called with the given / current context) |
scope | string | undefined | n/a |
Source: src/lib/utils/commands.js:59