Closed (fixed)
Project:
Drush Module Manager
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2009 at 16:02 UTC
Updated:
2 Jun 2009 at 18:50 UTC
I saw you invoke hook_help with 2 args in drush_mm - I checked several other bundles of drush commands and they only use 1 - named $section:
function pm_drush_help($section) {
switch ($section) {
case 'drush:enable':
return dt('Enable one or more modules. Enables dependant modules as well.');
case 'drush:disable':
return dt('Disable one or more modules. Disables dependant modules as well.');
case 'drush:uninstall':
return dt('Uninstall one or more modules. Modules must be disabled first.');
case 'drush:statusmodules':
return dt('Show enabled/disabled status for modules.');
case 'drush:refresh':
return dt('Refresh update status information. Run this before running update or updatecode commands.');
case 'drush:updatecode':
return dt("Display available update information and allow updating of all installed project code to the specified version (or latest by default).
Note: The user is asked to confirm before the actual update. Use the --yes option to answer yes automatically.");
case 'drush:update':
return dt("Display available update information and allow updating of all installed projects to the specified version (or latest by default), foll
owed by applying any database updates required (as with running update.php). Note: The user is asked to confirm before the actual update. Use the --yes
option to answer yes automatically.");
case 'drush:info':
return dt("View all releases for a given project (modules, themes, profiles, translations). Useful for deciding which version to install/update.")
;
case 'drush:dl':
return dt("Quickly download projects (modules, themes, profiles, translations) from drupal.org. Automatically figures out which module version you
want based on its latest release, or you may specify a particular version. Downloads drupal core as well. If no destination is provided, defaults to a
site specific modules directory if available, then to sites/all/modules if available, then to the current working directory.");
}
}
So please patch drush_mm.
PS I see the following list of commands in my drush-HEAD:
# ls -l commands/
core
pm
simpletest
sql
and
# drush
Execute a drush command. Run `drush help [command]` to view command-specific
help.
Examples:
drush dl cck zen Download CCK module and Zen theme.
drush --uri=http://example.com status Show status command for the example.com multi-site.
Options:
-r <path>, --root=<path> Drupal root directory to use (default: current directory)
-l <uri> , --uri=<uri> URI of the drupal site to use (only needed in multisite environments)
-v, --verbose Display all available output
-q, --quiet Hide all output
-y, --yes Assume 'yes' as answer to all prompts
-s, --simulate Simulate all relevant actions (don't actually change the system)
-i, --include A list of paths to search for drush commands
-c, --config Specify a config file to use. See example.drushrc.php
-u, --user Specify a user to login with. May be a name or a number.
-b, --backend Hide all output and return structured data (internal use only).
Commands:
help Print this help message. Use --filter to limit command list to one command file (e.g. --filter=pm)
status Provides a birds-eye view of the current Drupal installation, if any.
dl Download core Drupal and projects like CCK, Zen, etc.
updatedb Execute the update.php process from the command line
sql conf Print database connection details.
sql version server Print database server version number.
sql version client Print database client library version number.
sql dump Exports the Drupal DB as SQL using mysqldump.
sql query Execute a query against the site database.
sql load Copy source database to target database.
sql cli Open a SQL command-line interface using DrupalБ─≥s credentials.
cron Run all cron hooks.
script Run php script(s).
cache clear Clear all caches.
watchdog show Shows recent watchdog log messages. Optionally filter for a specific type.
watchdog delete Delete all messages or only those of a specified type.
sync Rsync the Drupal tree to/from another server using ssh.
eval Evaluate arbitrary php code after bootstrapping Drupal.
enable Enable one or more modules.
disable Disable one or more modules.
uninstall Uninstall one or more modules.
statusmodules Show module enabled/disabled status
refresh Refresh update status information
updatecode Update your project code
update Update your project code and apply any database updates required (update.php)
info Release information for a project
coder Run code reviews
generate users Creates users.
generate taxonomy Creates taxonomy.
generate content Creates content.
note the enable/disable commands - does these make drush_mm obsolete ?? At least the help claims so.
Comments
Comment #1
clemens.tolboom#1 : Fixed
#2 : I guess there is not much need to use drush_mm anymore. I personally like my listing more the statusmodules ... time will tell when this module become obsolete :)
Comment #2
rsvelko commented"I personally like my listing more the statusmodules" - I am actively pushing drush to become more drush_mm-ish ... You have come up with some very nice ideas in this module - and they WILL be incorporated in drush.
Comment #3
clemens.tolboomPlease xref this pushing. That way I can contrib too ;)
Comment #4
rsvelko commented#440962: a way to list enabled modules so that this output can be fed to a disable command - like in drush_mm module - here you go.
They have this new statusmodules command that uses --pipe to output the short list.... very slowly ... look in this thread above and comment there.
Cheers.