ConstructRunner constructor

ConstructRunner({
  1. required List<ConstructMaker> constructs,
  2. required String rootPath,
  3. required Logger logger,
  4. required FileSystem fs,
})

Implementation

ConstructRunner({
  required this.constructs,
  required this.rootPath,
  required this.logger,
  required FileSystem fs,
}) : super('', 'Generates the construct') {
  argParser
    ..addFlag(
      'loud',
      help: 'Prints detailed output',
      hide: true,
    )
    ..addFlag(
      'quiet',
      help: 'Limits output to important information only',
      hide: true,
    );

  addCommand(
    DevCommand(
      fs: fs,
      rootPath: rootPath,
      constructs: constructs,
      logger: logger,
    ),
  );
  addCommand(
    BuildCommand(
      fs: fs,
      rootPath: rootPath,
      constructs: constructs,
      logger: logger,
    ),
  );
}