CommandRegistry

interface CommandRegistry

Registry for command definitions.

Implementations must not perform IO directly; platform adapters bridge registration and input.

Functions

Link copied to clipboard
abstract fun dispatch(context: CommandContext): CommandResult

Dispatches a command execution.

Link copied to clipboard
abstract fun register(definition: CommandDefinition)

Registers definition.

Link copied to clipboard
abstract fun unregister(name: String)

Unregisters a command by its primary name.