function shellalias_shell_alias_complete

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

Command argument complete callback.

Return value

Array of available site aliases.

File

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

Code

function shellalias_shell_alias_complete() {
  if ($all = drush_get_context('shell-aliases', array())) {
    return array('values' => array_keys($all));
  }
}