CommandHandler: ((args, text, command) => Promise<TerminalOutputValue> | TerminalOutputValue)

Represents a command handler function.

Type declaration

Returns

A Promise or a value of type TerminalOutputValue.

Example

const handleCommand: CommandHandler = async (args, command) => {
// Command handling logic goes here
};

Generated using TypeDoc