Skip to content

FileExplorerPlugin.registerCliHandler method

FileExplorerPlugin › registerCliHandler

Unofficial

Registers a CLI handler for the file explorer.

Signature:

registerCliHandler(command: string, description: string, flags: CliFlags | null, handler: CliHandler): void

Parameters:

ParameterTypeDescription
commandstringThe command ID.
descriptionstringThe help/autocomplete description.
flagsCliFlags | nullThe CLI flags, or null.
handlerCliHandlerThe handler callback.

Returns: void