Skip to content

Commit

Permalink
ACMS-3507: Update URI, if site option is provided in custom command.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhode1 committed Jan 25, 2024
1 parent 088a195 commit 41ec472
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Drush/Commands/BaseDrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public function init(InputInterface $input, AnnotationData $annotationData): voi
$config = new DefaultDrushConfig($this->getConfig());
$configInitializer = new ConfigInitializer($config);
$config = $configInitializer->loadAllConfig()->processConfig();
if ($input->hasOption("site") && $input->getOption("site")) {
$config->set('drush.uri', $input->getOption("site"));
$config->set('site', $input->getOption("site"));
}
$this->setConfig($config);
}

Expand Down

0 comments on commit 41ec472

Please sign in to comment.