clean method
Implementation
Future<void> clean({
GlobalOptions? global,
PackageFilters? packageFilters,
}) async {
final workspace =
await createWorkspace(global: global, packageFilters: packageFilters);
return _runLifecycle(
workspace,
CommandWithLifecycle.clean,
() async {
logger.log('Cleaning workspace...');
await Future.wait(workspace.filteredPackages.values.map(_cleanPackage));
await cleanIntelliJ(workspace);
logger
..newLine()
..log(
'Workspace cleaned. You will need to run the bootstrap command '
'again to use this workspace.',
);
},
);
}