bandaid icon indicating copy to clipboard operation
bandaid copied to clipboard

Feature request - use Drupal Directory command to get path to module if a module name is supplied instead of a path

Open frederickjh opened this issue 8 years ago • 0 comments

Hi!

The commands for this Drush extension involve either cd-ing to the module's directory or supplying it on the command line. Drush has a Drupal Directory command (dd) that can be used to retrieve this. My suggestion is to use it to allow the user to supply the module name and allow drush to get the module directory.

It is possible to do this on the command line now with something like this: drush bandaid-patch https://www.drupal.org/node/123456 $(drush dd module_name) What I would like to be able to run is: drush bandaid-patch https://www.drupal.org/node/123456 module_name

I think that Drupal and drush will supply the correct module location in case of module overrides. Maybe something to check for or possibly run a drush cc drush before searching for the module's directory.

Maybe a fallback is needed. In other words if a path is given then it is used otherwise it checks to see if a module name was given then finds its path.

Thanks for considering this and God Bless! Frederick

frederickjh avatar Jun 24 '16 12:06 frederickjh