Closed (fixed)
Project:
Simple XML sitemap
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2017 at 09:55 UTC
Updated:
27 Oct 2017 at 23:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
badjava commentedHere is the patch.
Comment #3
badjava commentedComment #4
jribeiro commented+1 RTBC
Comment #5
gbyteThanks @badjava.
Why is the command
simple-sitemap:generateinstead ofsimple_sitemap:generate? That seems confusing to me. Is there a best practice on drush 9 commands?I'd also move
Drupal\simple_sitemap\Commands\SimpleSitemapCommands.phptoDrupal\simple_sitemap\Drush\Commands.php.Thoughts?
Comment #6
gbyteComment #7
badjava commentedTo provide some background, this patch was created as part of the code sprint in Vienna with @greg.1.anderson and the standards set out by him for porting drush commands to drush 9. Drush 9 commands now use the Symfony standard of
module-name:command-nameand the standard is also to put drush commands in the src/Commands folder. These are the new drush 9 standards.Comment #9
gbyteThanks, your explanation is sound. I wasn't able to find these drush 9 standards outlined anywhere, hence my question.
Comment #10
gbyteComment #11
matt_paz commentedI haven't looked deeply into this yet (and haven't pursued the patch above), but thought this might be related.
When executing simple commands like CR w/ Drush V8.1.15, I'm getting ...
Comment #12
gbyteComment #13
badrange commentedI just upgraded to 8.x-2.x to be able to try out the patch in #2875286 and I see the same error as matt_paz, with both Drush 8.1.10 and 8.1.15.
Comment #14
gbyteSounds like an upstream problem: https://github.com/drush-ops/drush/issues/3041
@badjava Aren't the commands supposed to go into drush.services.yml instead of simple_sitemap.services.yml as one of the posts from the issue above suggests?
Comment #15
gbyteAccording to this it is supposed to be drush.services.yml. This is now committed and tested with drush 9.0-dev-g2f52b20.