To help manage long help files, this patch separates commands into categories. help --sort removes the categories and puts everything in one long list again. Works with help --html.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drush-help.html | 108.55 KB | greg.1.anderson |
| drush-help-cmd-categories.patch | 16.12 KB | greg.1.anderson |
Comments
Comment #1
moshe weitzman commentedcould you pls attach output of categoried help or --html output? so we can visualize the change.
Comment #2
greg.1.anderson commentedHere is some output with some Drupal modules w/ drush integration included (--html output attached):
Comment #3
moshe weitzman commentedLooks real nice.
Comment #4
greg.1.anderson commentedWe recently renamed 'pm' from 'package manager' to 'project manager' in the comments (same time we did the 'extensions' renaming). Looked briefly for the issue # and didn't see it.
Comment #5
greg.1.anderson commentedCommitted; re-open if you want me to adjust terms or sorting or anything.
On sorting:
"Core" is always first, then commands with titles appear, sorted by title, then "All commands in xxx", then "Other commands", always last. (Command files with less than four commands go in "other commands" rather than "all commands in xxx", unless they have a title.) Maybe "All commands in xxx" should be sorted in with the other commands, but sorted by xxx. It seems good as it is, too, though.
I will update drush api with docs on how to declare help category titles.