registerAll method

void registerAll(
  1. Iterable<Command> commands, {
  2. CommandCategory category = CommandCategory.system,
})

Register multiple commands with the same category.

Implementation

void registerAll(
  Iterable<Command> commands, {
  CommandCategory category = CommandCategory.system,
}) {
  for (final cmd in commands) {
    register(cmd, category: category);
  }
}