From 89a98c57061fdb26cde2474ec2ec10999b5ec51f Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Sat, 3 Nov 2018 08:58:20 -0700 Subject: [PATCH] Rename drush.script in alias records to drush-script, as it already is in configuration. --- src/Commands/core/StatusCommands.php | 2 +- src/Drush.php | 2 +- src/Preflight/PreflightArgs.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/core/StatusCommands.php b/src/Commands/core/StatusCommands.php index 7b6e91206d..a83e1b5f23 100644 --- a/src/Commands/core/StatusCommands.php +++ b/src/Commands/core/StatusCommands.php @@ -136,7 +136,7 @@ public function getPropertyList($options) if ($phpIniFiles = EditCommands::phpIniFiles()) { $status_table['php-conf'] = $phpIniFiles; } - $status_table['drush-script'] = $this->getConfig()->get('runtime.drush.script'); + $status_table['drush-script'] = $this->getConfig()->get('runtime.drush-script'); $status_table['drush-version'] = Drush::getVersion(); $status_table['drush-temp'] = $this->getConfig()->tmp(); $status_table['drush-cache-directory'] = $this->getConfig()->cache(); diff --git a/src/Drush.php b/src/Drush.php index 54c85e0893..64aa4690f6 100644 --- a/src/Drush.php +++ b/src/Drush.php @@ -380,7 +380,7 @@ protected static function configureProcess(ProcessBase $process) */ public static function drushScript() { - return \Drush\Drush::config()->get('runtime.drush.script', 'drush'); + return \Drush\Drush::config()->get('runtime.drush-script', 'drush'); } /** diff --git a/src/Preflight/PreflightArgs.php b/src/Preflight/PreflightArgs.php index 79b8062d48..83ce2439dd 100644 --- a/src/Preflight/PreflightArgs.php +++ b/src/Preflight/PreflightArgs.php @@ -163,7 +163,7 @@ public function applyToConfig(ConfigInterface $config) // Store the runtime arguments and options (sans the runtime context items) // in runtime.argv et. al. - $config->set('runtime.drush.script', $this->applicationPath()); + $config->set('runtime.drush-script', $this->applicationPath()); $config->set('runtime.command', $this->commandName() ?: 'help'); $config->set('runtime.argv', $this->args()); $config->set('runtime.options', $this->getOptionNameList($this->args()));