CleanCommand constructor

CleanCommand({
  1. required PubspecYaml pubspecYaml,
  2. required PubspecLock pubspecLock,
  3. required FindFile findFile,
  4. required Bindings bindings,
  5. required Logger logger,
  6. required CWD cwd,
  7. required ScriptsYaml scriptsYaml,
  8. required RunManyScripts runManyScripts,
  9. required RunOneScript runOneScript,
})

Implementation

CleanCommand({
  required this.pubspecYaml,
  required this.pubspecLock,
  required this.findFile,
  required this.bindings,
  required this.logger,
  required this.cwd,
  required this.scriptsYaml,
  required this.runManyScripts,
  required this.runOneScript,
}) {
  argParser
    ..addFlag(
      'pubspec-lock',
      help: 'Whether to remove the pubspec.lock file.',
      aliases: ['lock', 'locks', 'pubspec-locks', 'pubspecs'],
    )
    ..addFlag(
      'concurrent',
      abbr: 'c',
      help: 'Cleans packages concurrently',
      defaultsTo: true,
    )
    ..addFlag(
      'recursive',
      abbr: 'r',
      help: 'Cleans packages in subdirectories',
    );
}