function drush_core_shell_alias

8.0.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)
6.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)
7.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)
5.x shellalias.drush.inc drush_core_shell_alias($alias = FALSE)

Print out the specified shell aliases.

File

commands/core/shellalias.drush.inc, line 48
Shell alias commands.

Code

function drush_core_shell_alias($alias = FALSE) {
  $shell_aliases = drush_get_context('shell-aliases', array());
  if (!$alias) {
    drush_print_table(drush_key_value_to_array_table($shell_aliases));
  }
  elseif (isset($shell_aliases[$alias])) {
    drush_print_table(drush_key_value_to_array_table(array($alias => $shell_aliases[$alias])));
  }
}