get method

Find a command by name or alias. Strips leading /.

Implementation

CommandRegistration? get(String name) {
  final normalized = name.startsWith('/') ? name.substring(1) : name;
  return _byName[normalized] ?? _byAlias[normalized];
}