cleanIntelliJ method

Future<void> cleanIntelliJ(
  1. MelosWorkspace workspace
)
inherited

Implementation

Future<void> cleanIntelliJ(MelosWorkspace workspace) async {
  if (dirExists(workspace.ide.intelliJ.runConfigurationsDir.path)) {
    final melosXmlGlob = createGlob(
      p.join(
        workspace.ide.intelliJ.runConfigurationsDir.path,
        '$kRunConfigurationPrefix*.xml',
      ),
      currentDirectoryPath: workspace.path,
    );

    await for (final melosXmlFile
        in melosXmlGlob.listFileSystem(const LocalFileSystem())) {
      deleteEntry(melosXmlFile.path);
    }
  }
}