Skip to content

docs about need for drush section in composer.json are incomplete #5244

@joachim-n

Description

@joachim-n

Existing document

https://www.drush.org/latest/commands/ says:

In Drush 9, the default services file, drush.services.yml, will be used in instances where there is no services section in the Drush extras of the project's composer.json file. In Drush 10, however, the services section must exist, and must name the services file to be used

What are you attempting to do

Write custom commands

In what way is the existing documentation unclear or incomplete

  1. If Drush 9 is EOL, then the docs shouldn't mention it (assuming it's possible for a developer maintaining an old codebase to find the documentation for Drush 9 somewhere else)
  2. The docs should say 'Drush 10 and later', as otherwise it's confusing what happens on Drush 11.
  3. The docs say that on Drush >10 that the drush services file must exist. However on my project I have a custom module which has no composer.json file and only a drush.services.yml file, the project's root composer.json doesn't declare anything drush-like, the project's ROOT/drush folder contains nothing other than commented-out boilerplate, and the command is getting picked up! I have no idea how!

What should the documentation say instead?
To the best of your ability, explain what additional information would allow you to complete your task. If you already know what the documentation should say, please consider submitting a documentation pull request instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions