registerExtendedCommands method
void
registerExtendedCommands(
- List<
Command> commands, { - CommandCategory category = CommandCategory.system,
Register extended / plugin commands discovered at runtime.
These are typically loaded from skills, MCP servers, or user plugins.
Implementation
void registerExtendedCommands(
List<Command> commands, {
CommandCategory category = CommandCategory.system,
bool hidden = false,
}) {
for (final cmd in commands) {
register(cmd, category: category, hidden: hidden);
}
}