There's a handy little parameter available to libraries which allows you to override the destination directory with relation to the contrib directory. I wanted this for modules and themes as well for a specific use case we have with how we structure our code bases at my company. I see no issues that could arise from allowing modules and themes to do this as the default functionality still stays true.

CommentFileSizeAuthor
drush-make-destination-extend-1.patch1.49 KBacbramley

Comments

mradcliffe’s picture

I created a fork of drush on github and applied your patch with attribution: https://github.com/mradcliffe/drush/tree/2011284-destination-parameter

greg.1.anderson’s picture

Could you submit this as a pull request too? Please mark as Closed, duplicate once you migrate this issue to github.

acbramley’s picture

Thank you @mradcliffe, I probably should've opened it up there in the first place?

greg.1.anderson’s picture

Drush only moved to Github a few days ago; I intend to shortly close all of the issues in the queue here with instructions to move issues folks are still interested in to Github. The boilerplate will look something like this:

This issue was marked closed (won't fix) because Drush has moved to Github.

Please ask support questions on Drupal Answers and use our Github project for contributing code, or reporting bugs, or requesting features.

If you open a new bug on Github, please post a link here to the new issue, and change the status of this issue to closed (duplicate).

mradcliffe’s picture

I haven't run it through unit tests yet, greg.1.anderson, which is why I haven't submitted it yet. I may just do that anyway.

greg.1.anderson’s picture

Version: 7.x-5.x-dev » 8.x-6.x-dev
Status: Needs review » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.

mradcliffe’s picture

Status: Closed (won't fix) » Closed (duplicate)

@acbramley sent me a note, and I realized I just needed to do 5 more minutes of work to fix the test I added. I think it's ready for a PR.

https://github.com/drush-ops/drush/pull/97

acbramley’s picture

Thanks very much @mradcliffe :)