RevaliRunner constructor

RevaliRunner({
  1. required Logger logger,
  2. required String initialDirectory,
  3. required FileSystem fs,
})

Implementation

RevaliRunner({
  required this.logger,
  required String initialDirectory,
  required FileSystem fs,
}) : super('revali', 'revali code generator') {
  argParser
    ..addFlag(
      'loud',
      help: 'Prints detailed output',
      hide: true,
    )
    ..addFlag(
      'quiet',
      help: 'Limits output to important information only',
      hide: true,
    );

  final entrypointHandler = ConstructEntrypointHandler(
    logger: logger,
    initialDirectory: initialDirectory,
    fs: fs,
  );

  addCommand(
    DevCommand(
      fs: fs,
      logger: logger,
      generator: entrypointHandler,
    ),
  );
  addCommand(
    BuildCommand(
      fs: fs,
      logger: logger,
      generator: entrypointHandler,
    ),
  );
}