PlatformCommandBridge

Platform boundary for command IO.

Responsibilities

  • Let core register/unregister commands with the host (if the host supports it).

  • Allow the platform adapter to connect inbound command input to a CommandRegistry.

Anti-goal

This does not define a parsing engine. Platforms decide how input is tokenized and how help/completions are implemented (if at all).

Functions

Link copied to clipboard
abstract fun bind(registry: CommandRegistry)

Binds inbound command execution to a registry.

Link copied to clipboard

Convenience method for platform adapters to dispatch an inbound command to the bound registry.

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

Called by core when a command is registered.

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

Called by core when a command is unregistered.