Skip to content

data/CommandHandler

Classes

CommandHandler

Defined in: data/CommandHandler.ts:29

CommandHandler processes commands before they are sent to the server. It handles: 1. Local commands that are executed client-side only (PAN, ZOOM, etc.) 2. Commands that need preprocessing before sending to server (MCRE with bbox) 3. Commands that need special client-side handling (QUIT)

Constructors

Constructor
new CommandHandler(app): CommandHandler;

Defined in: data/CommandHandler.ts:82

Parameters
app

App

Returns

CommandHandler

Methods

getAllHandledCommands()
getAllHandledCommands(): string[];

Defined in: data/CommandHandler.ts:90

All commands handled by this CommandHandler — the single source of truth the console merges into its autocomplete list.

Returns

string[]

handleCommand()
handleCommand(command): CommandResult;

Defined in: data/CommandHandler.ts:99

Main entry point for command processing

Parameters
command

string

The raw command string from the console

Returns

CommandResult

CommandResult indicating how to handle the command

Interfaces

CommandResult

Defined in: data/CommandHandler.ts:13

Result of command processing

Properties

handled
handled: boolean;

Defined in: data/CommandHandler.ts:15

Whether the command was handled by this handler

sendToServer
sendToServer: boolean;

Defined in: data/CommandHandler.ts:17

Whether the command should be sent to the BlueSky server

modifiedCommand?
optional modifiedCommand?: string;

Defined in: data/CommandHandler.ts:19

Modified command to send (if different from original)