function pm_projectinfo_commands_in_project

8.0.x projectinfo.pm.inc pm_projectinfo_commands_in_project($project)
master projectinfo.pm.inc pm_projectinfo_commands_in_project($project)
1 call to pm_projectinfo_commands_in_project()
drush_pm_projectinfo in commands/pm/projectinfo.pm.inc
Implementation of drush_hook_COMMAND().

File

commands/pm/projectinfo.pm.inc, line 75

Code

function pm_projectinfo_commands_in_project($project) {
  $drush_commands = array();
  if (array_key_exists('path', $project)) {
    $commands = drush_get_commands();
    foreach ($commands as $commandname => $command) {
      if (!array_key_exists("is_alias", $command) && ($command['path'] == $project['path'])) {
        $drush_commands[] = $commandname;
      }
    }
  }
  return $drush_commands;
}