function drush_sitealias_print

8.0.x sitealias.drush.inc drush_sitealias_print()
6.x sitealias.drush.inc drush_sitealias_print()
7.x sitealias.drush.inc drush_sitealias_print()
3.x sitealias.drush.inc drush_sitealias_print()
4.x sitealias.drush.inc drush_sitealias_print()
5.x sitealias.drush.inc drush_sitealias_print()
master sitealias.drush.inc drush_sitealias_print()

Print out the specified site aliases (or else all) using the format specified.

1 string reference to 'drush_sitealias_print'

File

commands/core/sitealias.drush.inc, line 187
Site alias commands.

Code

function drush_sitealias_print() {
  $site_list = _drush_sitealias_user_specified_list();
  if ($site_list === FALSE) {
    return FALSE;
  }
  ksort($site_list);
  $with_db = (drush_get_option('with-db') != NULL) || (drush_get_option('with-db-url') != NULL);

  $site_specs = array();
  foreach ($site_list as $site => $alias_record) {
    list($alias_name, $result_record) = _drush_sitealias_prepare_record($alias_record, $site);
    $site_specs[$alias_name] = $result_record;
  }
  ksort($site_specs);
  return $site_specs;
}