ConstructRunner constructor

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

Implementation

ConstructRunner({
  required this.constructs,
  required this.rootPath,
  required this.logger,
  required FileSystem fs,
  required Analyzer analyzer,
}) : 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,
      analyzer: analyzer,
    ),
  );
  addCommand(
    BuildCommand(
      fs: fs,
      rootPath: rootPath,
      constructs: constructs,
      logger: logger,
      analyzer: analyzer,
    ),
  );
}