function drush_command_include

8.0.x drush_command_include($command)
6.x drush_command_include($command)
7.x drush_command_include($command)
3.x drush_command_include($command)
4.x drush_command_include($command)
5.x drush_command_include($command)
master drush_command_include($command)

Conditionally include files based on the command used.

Steps through each of the currently loaded commandfiles and loads an optional commandfile based on the key.

When a command such as 'pm-enable' is called, this function will find all '' files that are present in each of the commandfile directories.

1 call to drush_command_include()
_drush_invoke_args in includes/
Variant of drush_invoke_args that allows the commandfile to be specified correctly; this allows the hook functions to be correctly determined for commands that provide a 'callback' function.


includes/, line 1110
The drush command engine.


function drush_command_include($command) {
  $include_files = drush_command_get_includes($command);
  foreach ($include_files as $filename => $commandfile) {
    drush_log(dt('Including !filename', array('!filename' => $filename)), 'bootstrap');
    include_once ($filename);