From 94ed8563a647d1a19d0d44025642d299d5ebd2fb Mon Sep 17 00:00:00 2001 From: gitressa <3491208+gitressa@users.noreply.github.com> Date: Sat, 4 Oct 2025 11:19:14 +0200 Subject: [PATCH 1/3] Streamline example.drush.yml, enable all options Wouldn't it be better to streamline options, and make them all active? Supposedly, the user knows that commenting out an option is possible. Also, the `sql:dump` > `structure-tables-key: common` example doesn't work without defining the actual tables under `sql` Non-option, so maybe include them as well? --- examples/example.drush.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/examples/example.drush.yml b/examples/example.drush.yml index 5cd8125f8e..6f29343e89 100644 --- a/examples/example.drush.yml +++ b/examples/example.drush.yml @@ -19,7 +19,7 @@ drush: # Global options. options: # Specify the base_url that should be used when generating links. -# uri: 'http://example.com/subdir' + uri: 'https://example.com/subdir' # Command-specific options. command: @@ -29,14 +29,24 @@ command: user: login: options: - name: newadminuser + name: newadmin sql: dump: options: - # Uncomment to omit cache and similar tables (including during a sql:sync). -# structure-tables-key: common + # Omit cache and similar tables (including during a sql:sync). + # Define tables to exclude under sql section. + structure-tables-key: common # Non-options. +sql: + # List of tables whose *data* is skipped by the 'sql:dump' and 'sql:sync' + # commands when the "--structure-tables-key=common" option is provided. + structure-tables: + common: + - cache + - 'cache_*' + - 'watchdog' + ssh: # Specify options to pass to ssh. The default is to prohibit # password authentication, and is included here, so you may add additional From d67d393ced4aa6e94eff577d43277264ff8f0d95 Mon Sep 17 00:00:00 2001 From: gitressa <3491208+gitressa@users.noreply.github.com> Date: Sat, 4 Oct 2025 11:24:57 +0200 Subject: [PATCH 2/3] Add user:login options in Using Drush as well --- docs/using-drush-configuration.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/using-drush-configuration.md b/docs/using-drush-configuration.md index 2a4f57abb6..1b7cceb7cd 100644 --- a/docs/using-drush-configuration.md +++ b/docs/using-drush-configuration.md @@ -92,7 +92,7 @@ drush: ```yml options: # Specify the base_url that should be used when generating links. - uri: 'http://example.com/subdir' + uri: 'https://example.com/subdir' # Load Drush config from a non-standard location config: '/home/USER/workspace/drupal' @@ -104,6 +104,13 @@ options: #### Command-specific options ```yml command: + # Disabling the admin super user account (uid #1) is recommended. + # Use this to specify another admin account for the uli command. + # See https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-admin-super-user-1 + user: + login: + options: + name: newadmin sql: cli: options: @@ -123,7 +130,6 @@ command: options: # Ensure all rsync commands use verbose output. verbose: true - site: install: options: From 42e59b632787a4e5b3cce72184df602f9e74347b Mon Sep 17 00:00:00 2001 From: gitressa <3491208+gitressa@users.noreply.github.com> Date: Fri, 12 Dec 2025 11:02:41 +0100 Subject: [PATCH 3/3] Restore commented out line --- examples/example.drush.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example.drush.yml b/examples/example.drush.yml index 6f29343e89..4750ed0ec8 100644 --- a/examples/example.drush.yml +++ b/examples/example.drush.yml @@ -19,7 +19,7 @@ drush: # Global options. options: # Specify the base_url that should be used when generating links. - uri: 'https://example.com/subdir' + # uri: 'https://example.com/subdir' # Command-specific options. command: