Interface ICommandRegistry
Registry of available commands, keyed by name and aliases. Provided to the service registry so the host registers built-ins and modules contribute their own commands in setup.
public interface ICommandRegistry
Properties
Commands
All distinct registered commands.
IReadOnlyCollection<ICommand> Commands { get; }
Property Value
Methods
Register(ICommand)
Register a command under its name and aliases. Throws if the name is already taken.
void Register(ICommand command)
Parameters
commandICommand
TryGet(string, out ICommand?)
Look up a command by name or alias (case-insensitive).
bool TryGet(string nameOrAlias, out ICommand? command)