CreateCommand constructor

CreateCommand({
  1. required Logger logger,
  2. @visibleForTesting MasonGeneratorFromBundle? generatorFromBundle,
  3. @visibleForTesting MasonGeneratorFromBrick? generatorFromBrick,
})

Implementation

CreateCommand({
  required Logger logger,
  @visibleForTesting MasonGeneratorFromBundle? generatorFromBundle,
  @visibleForTesting MasonGeneratorFromBrick? generatorFromBrick,
}) {
  addSubcommand(
    CreateProjectCommand(
      logger: logger,
      generatorFromBundle: generatorFromBundle,
      generatorFromBrick: generatorFromBrick,
    ),
  );
  addSubcommand(
    CreateFeatureCommand(
      logger: logger,
      generatorFromBundle: generatorFromBundle,
      generatorFromBrick: generatorFromBrick,
    ),
  );
  addSubcommand(
    CreateSanitySchemaCommand(
      logger: logger,
      generatorFromBundle: generatorFromBundle,
      generatorFromBrick: generatorFromBrick,
    ),
  );
}