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,
})

Implementation

CleanCommand({
  required this.pubspecYaml,
  required this.pubspecLock,
  required this.findFile,
  required this.bindings,
  required this.logger,
  required this.cwd,
}) {
  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',
    );
}