createGenerator method

  1. @visibleForTesting
Future<MasonGenerator> createGenerator()

Use the tested template shipped with this CLI version, without silently replacing it with a different registry version at generation time.

Implementation

@visibleForTesting
Future<MasonGenerator> createGenerator() async {
  logger.detail(
    '''Building generator from bundle ${template.bundle.name} ${template.bundle.version}''',
  );
  return _generatorFromBundle(template.bundle);
}