LocalCommandRegistry.withDefaults constructor

LocalCommandRegistry.withDefaults()

Creates a registry pre-populated with the built-in commands.

Implementation

factory LocalCommandRegistry.withDefaults() {
  final registry = LocalCommandRegistry();
  for (final command in _builtIns) {
    registry.register(command);
  }
  return registry;
}