CleanCommand constructor
CleanCommand({
- required PubspecYaml pubspecYaml,
- required PubspecLock pubspecLock,
- required FindFile findFile,
- required Bindings bindings,
- required Logger logger,
- 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',
);
}