Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
When running drush config:import I want --diff enabled by default, defined via my Drush configuration, as outlined in the examples under Command-specific options.
To Reproduce
I tried with this in vendor/drush/drush/drush.yml, and the uri is succesfully getting picked up, but not the diff-bit ... Do I need to use another syntax?
# Global options.
options:
# Specify the base_url that should be used when generating links.
uri: 'https://DRUSH-file-test.com/'
# Command-specific options.
command:
config:
import:
options:
diff: true
An alternative way to populate Drush configuration is to define environment variables that correspond to config keys. For example, to populate the options.uri config item, create an environment variable DRUSH_OPTIONSURI=http://example.com. As you can see, variable names should be uppercased, prefixed with DRUSH, and periods replaced with dashes.
So something like this should work (DRUSH_OPTIONS_URI is getting picked up) in .lando.yml, but it doesn't:
Describe the bug According to the documentation, it should be possible to define defaults via a configuration file: https://www.drush.org/latest/using-drush-configuration/
What are you attempting to do
When running
drush config:import
I want--diff
enabled by default, defined via my Drush configuration, as outlined in the examples under Command-specific options.To Reproduce
I tried with this in
vendor/drush/drush/drush.yml
, and theuri
is succesfully getting picked up, but not thediff
-bit ... Do I need to use another syntax?Under Environment variables I also see this:
So something like this should work (
DRUSH_OPTIONS_URI
is getting picked up) in.lando.yml
, but it doesn't:Expected behavior I expected a detailed
--diff
-view after runningdrush config:import
.Actual behavior I got the ordinar list of files about to be changed, not the code changes.
System Configuration