BuildCommand constructor

BuildCommand({
  1. required FindSettings settings,
  2. required FileSystem fs,
  3. required Logger logger,
})

Implementation

BuildCommand({
  required this.settings,
  required this.fs,
  required this.logger,
}) {
  argParser
    ..addOption(
      'config',
      abbr: 'c',
      valueHelp: 'Define a yaml file path.',
      help: 'If not present use the "barreler.yaml" file',
    )
    ..addFlag(
      'set-exit-if-changed',
      defaultsTo: false,
      negatable: false,
      help: 'Fail if there are any changes in the generated barrel files.',
    );
}