/module-info

Drush command to create an alphabetically-sorted csv file containing module names, versions, and containing directories.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Module Info

This Drush command creates an alphabetically-sorted csv file including the module name, the module version (if available), and the directory the module was found in.

The main idea is to get a quick listing of modules + versions from a given module directory when auditing an existing site--especially one with more than one modules directory that could contain duplicate modules.

Use it like this:

drush mi --dirs=sites/all/modules/,sites/default/folders --filepath=./module-list.csv

Notes

  • The command does not search recursively for modules since most modules that contain other modules are listed on d.o and elsewhere by the main module's name.
  • The command only scans the directory paths provided by --dirs.