backdrop-contrib / backdrop-drush-extension

A set of commands and boot class for Drush and Backdrop CMS.
GNU General Public License v2.0
14 stars 18 forks source link

Issue #105: Allow modules to specify Backdrop drush commands. #123

Closed quicksketch closed 6 years ago

quicksketch commented 6 years ago

This attempts to solve https://github.com/backdrop-contrib/drush/issues/105.

Commands specified by global drush use an absolute path, so they start with "/" i.e. /usr/local/bin/drush/core/commands/[file].inc. But module-provided commands are local, such as modules/devel.drush.inc. As per-directory drush installations may also be used, I added a check for the string "modules" to decern between local drush installs and local Backdrop modules.