Attached patch foregoes correctness in favor of speed. help command bootstraps only to CONFIGURATION phase instead of FULL. It shows all drush commands found in module directories for the current site - even disabled modules. If you try to run one of those disabled module commands, you get a nice error message (that was a patch from 2 days ago).

Feedback?

CommentFileSizeAuthor
fast.patch3.24 KBmoshe weitzman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Title: Massive speed up help command » Massively speed up `help` command
Owen Barton’s picture

Status: Needs review » Reviewed & tested by the community

Tested, looks great - I think we should go with this.

moshe weitzman’s picture

It would only cost us 2 milliseconds or so to query system table and know the enabled modules. I think I'll add this then commit.

moshe weitzman’s picture

Status: Reviewed & tested by the community » Fixed

Committed without any check for enabled modules yet. Can be a follow-up issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.