Following https://weitzman.github.io/blog/port-to-drush9, we should update the Drush 8 .inc file and instead use the drush.services.yml and src/Commands files.
Following https://weitzman.github.io/blog/port-to-drush9, we should update the Drush 8 .inc file and instead use the drush.services.yml and src/Commands files.
Comments
Comment #2
afireintheattic commentedThis could potentially also need a patch for drush, as support for drush commands in themes has been removed: https://github.com/drush-ops/drush/pull/3089This has been marked as "won't fix" by drush maintainers. Instead, we need to look into creating this as a separate module, declared as a dependency of the theme. This will require https://www.drupal.org/project/drupal/issues/474684 to be rolled in to core, unfortunately.
Comment #3
afireintheattic commentedComment #4
afireintheattic commentedComment #5
afireintheattic commentedComment #7
afireintheattic commentedRather than porting these commands to Drush 9/10, as they are using a ton on functions that are no longer supported, we are instead opting for manually renaming occurrences of "starterkit" when creating a custom theme. This is a common practice for many contrib themes; however, this will be revisited at a later date if the need arises.