Skip to content

Commit

Permalink
Remove no-longer-supported options from sa command.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Sep 22, 2017
1 parent d562486 commit 6746d0f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Commands/core/SiteCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Drush\Commands\DrushCommands;

use Drush\Drush;
use Drush\SiteAlias\AliasRecord;
use Drush\SiteAlias\SiteAliasManagerAwareInterface;
use Drush\SiteAlias\SiteAliasManagerAwareTrait;
use Drush\SiteAlias\SiteAliasName;
Expand Down Expand Up @@ -85,10 +86,6 @@ public function siteSet($site = '@none', $options = ['a' =>'b'])
*
* @command site-alias
* @param $site Site alias or site specification.
* @option no-db Do not include the database record in the full alias record (default).
* @option with-optional Include optional default items.
* @option local-only Only display sites that are available on the local system (remote-site not set, and Drupal root exists)
* @option show-hidden Include hidden internal elements in site alias output
* @aliases sa
* @usage drush site-alias
* List all alias records known to drush.
Expand All @@ -97,16 +94,11 @@ public function siteSet($site = '@none', $options = ['a' =>'b'])
* @usage drush @none site-alias
* Print only actual aliases; omit multisites from the local Drupal installation.
* @topics docs-aliases
* @complete \Drush\Commands\CompletionCommands::completeSiteAliases
*
* @return \Consolidation\OutputFormatters\StructuredData\ListDataFromKeys
*/
public function siteAlias($site = null, $options = ['format' => 'yaml'])
{
if (!$this->hasSiteAliasManager()) {
return new ListDataFromKeys($this->oldSiteAliasCommandImplementation($site, $options));
}

// Check to see if the user provided a specification that matches
// multiple sites.
$aliasList = $this->siteAliasManager()->getMultiple($site);
Expand All @@ -127,6 +119,11 @@ public function siteAlias($site = null, $options = ['format' => 'yaml'])
}
}

/**
* @param array $aliasList
* @param $options
* @return array
*/
protected function siteAliasExportList($aliasList, $options)
{
$result = array_map(
Expand Down

0 comments on commit 6746d0f

Please sign in to comment.