selectStrategy method

ReleaseStrategy selectStrategy(
  1. ReleaseType type
)

Selects strategy for type. Throws ValidationException if no strategy is registered.

Implementation

ReleaseStrategy selectStrategy(ReleaseType type) {
  final strategy = _strategies[type];
  if (strategy == null) {
    throw ValidationException(
      'No release strategy registered for release mode "${type.cliName}".',
    );
  }
  return strategy;
}