F

createCommands

Creates the commands handle for one owner, like createPatcher does for patches. A plugin passes its manifest id, so its commands are removed when it stops; a built-in passes 'unbound'. Text is message keys.

function createCommands(owner: string, options?: CommandsOptions): CommandsHandle

Parameters

NameTypeDescription
ownerstring

The plugin id, or 'unbound' for a built-in.

options?CommandsOptions

The owner's own picker section; omitted, the shared Unbound section.

Returns

CommandsHandle

The handle.