Adds the ability to uninstall multiple modules and themes using the Drupal core CLI. This introduces the ex:uninstall command along with the aliases exun, pm:uninstall, and pmu.
The command accepts one or multiple extension machine names. When uninstalling a module, installed dependent modules are also resolved and uninstalled in the appropriate order. When uninstalling a base theme, its installed sub-themes are also resolved for uninstallation.
The command supports interactive confirmation as well as the --yes option to skip confirmation. The --dry-run option can be used to display what would be uninstalled without making any changes.
Modules and themes cannot be uninstalled in the same invocation.
Example
vendor/bin/dr ex:uninstall single_module
vendor/bin/dr ex:uninstall single_theme
vendor/bin/dr ex:uninstall module_one,module_two,module_three,module_four
To skip the confirmation prompt:
vendor/bin/dr ex:uninstall module_one --yes
To preview what will be uninstalled without making changes:
vendor/bin/dr ex:uninstall module_one --dry-run