function shellalias_drush_command

8.0.x shellalias.drush.inc shellalias_drush_command()
6.x shellalias.drush.inc shellalias_drush_command()
7.x shellalias.drush.inc shellalias_drush_command()
5.x shellalias.drush.inc shellalias_drush_command()

File

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

Code

function shellalias_drush_command() {
  $items = array();

  $items['shell-alias'] = array(
    'description' => 'Print all known shell alias records.',
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'arguments' => array(
      'alias' => 'Shell alias to print',
    ),
    'outputformat' => array(
      'default' => 'key-value',
      'pipe-format' => 'json',
      'simplify-single' => TRUE,
      'output-data-type' => 'format-list',
    ),
    'aliases' => array('sha'),
    'examples' => array(
      'drush shell-alias' => 'List all alias records known to drush.',
      'drush shell-alias pull' => 'Print the value of the shell alias \'pull\'.',
    ),
  );
  return $items;
}