This pull request is based on the work in #18 to make drush commands support site aliases. It also allows drupal-mode to work better with multisite installations. (I dislike multisite setups, but sometimes have to deal with them…)
It adds a concept of the "current site", which can be specified either using a site alias or a parameter to --uri. It also refactors all Drush calls so that they go through a standard interface which respects these parameters.
The "current site" setting is common to all buffers within the same project. It should be detected automatically, and can be changed using a command (M-x drupal-set-site) or via the menubar.
This has received only light testing, but it seems to work, so I wanted to open a PR to allow others to potentially test and review it. (Also happy to add more ERT tests, etc.)
This pull request is based on the work in #18 to make drush commands support site aliases. It also allows drupal-mode to work better with multisite installations. (I dislike multisite setups, but sometimes have to deal with them…)
It adds a concept of the "current site", which can be specified either using a site alias or a parameter to
--uri
. It also refactors all Drush calls so that they go through a standard interface which respects these parameters.The "current site" setting is common to all buffers within the same project. It should be detected automatically, and can be changed using a command (
M-x drupal-set-site
) or via the menubar.This has received only light testing, but it seems to work, so I wanted to open a PR to allow others to potentially test and review it. (Also happy to add more ERT tests, etc.)