Closed (fixed)
Project:
Drush
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jun 2010 at 11:14 UTC
Updated:
27 Jul 2011 at 20:31 UTC
Jump to comment: Most recent file
I have been working on a site with install profiles, and we recently discovered that drush help does not list commands of modules inside install profiles (in this case we have features as part of our install profile. The features commands do not show up in the command list of drush help. Running the features commands, however, work just fine).
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | profiles.diff | 1.6 KB | moshe weitzman |
Comments
Comment #1
moshe weitzman commentedThis is a known problem in 3.x that I introduced with #453866: Massively speed up `help` command. In order to fix it, I need to make the drush bootstrap and _drush_find_commandfiles() more granular. Thats going to have to wait for 4.x
Comment #2
Grayside commentedThis problem also includes drush drupal-directory--it does not find the existing modules.
Comment #3
moshe weitzman commentedWe need #545452: Store install profile in the generated settings.php file in order to fix this. Other techniques would slow down drush too much.
Comment #4
patcon commentedIf anyone is having trouble remembering syntax in this case (but you still remember the command itself, just user
drush <command> --helpinstead ofdrush help <command>and it should work.And for the record, (if anyone else is wondering) it seems this is still an issue in 4.4
Cheers
Comment #5
acrollet commentedsubscribe
Comment #6
moshe weitzman commented#4 is an interesting buglet. Those two syntaxes are intended to be equivalent.
#545452: Store install profile in the generated settings.php file did not get into D7 so I think this has to wait some more.
Comment #7
Grayside commentedWould it be reasonable to allow developers to manually add this information, and act on it if not null?
Comment #8
febbraro commentedSub. Having this same issue. Itsa problem for distros.
Comment #9
moshe weitzman commentedAttached patch helps out a bit. If settings.php has a variable such as
$conf['install_profile'] = 'openatrium';, then commands located within/profiles/openatrium/modulesare listed in help. That variable can be set by:Note that setting the variable in the DB is insufficient. drush help never touches the DB.
There are other interesting issues regarding upgrading code in /profiles. This patch does not address those.
Let me know if this patch will be enough for distros.
Comment #10
moshe weitzman commentedCommitted to master and 4.x. Will be in Drush 4.5
Comment #11
moshe weitzman commented