getCommand method

CommandDescriptor getCommand(
  1. String name
)

@internal

Implementation

CommandDescriptor getCommand(String name) {
  CommandDescriptor? command = _commands[name];
  if (command != null) {
    return command;
  }
  else {
    throw CommandException("unknown command '$name'");
  }
}