registerExtendedCommands method

void registerExtendedCommands(
  1. List<Command> commands, {
  2. CommandCategory category = CommandCategory.system,
  3. bool hidden = false,
})

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);
  }
}