function drush_pm_info

8.0.x info.pm.inc drush_pm_info()
6.x info.pm.inc drush_pm_info()
7.x info.pm.inc drush_pm_info()
3.x pm.drush.inc drush_pm_info()
4.x pm.drush.inc drush_pm_info()
5.x info.pm.inc drush_pm_info()
master info.pm.inc drush_pm_info()

Command callback. Show detailed info for one or more projects.

File

commands/pm/pm.drush.inc, line 558
The drush Package Manager

Code

function drush_pm_info() {
  $args = func_get_args();

  $project_info = drush_pm_get_projects();
  _drush_pm_expand_projects($args, $project_info);

  foreach ($args as $project) {
    if (isset($project_info[$project])) {
      $info = $project_info[$project];
    }
    else {
      drush_set_error('DRUSH_PM_INFO_PROJECT_NOT_FOUND', dt('!project was not found.', array('!project' => $project)));
      continue;
    }
    if ($info->type == 'module') {
      $data = _drush_pm_info_module($info);
    }
    else {
      $data = _drush_pm_info_theme($info);
    }
    drush_print_table(drush_key_value_to_array_table($data));
    print "\n";
  }
}