command static method
Returns the command registered with the specified name.
Returns null when no matching command is registered.
Implementation
static Command? command(String name) {
for (final command in commands) {
if (command.name == name) return command;
if (command.aliases.contains(name)) return command;
}
return null;
}