Update "entity_id" Drush option documentation

Created on 16 September 2024, 2 months ago
Updated 20 September 2024, about 2 months ago

Problem/Motivation

"default-content-deploy:export" Drush command enables (according to documentation) to export just one particular entity, when using "entity_id" option. But in fact, it works also for multiple IDs set in the option.

Steps to reproduce

Execute Drush command:

drush dcde taxonomy_term --folder=my_directory --entity_id=1,3

Result: Both entities are successfully exported to given directory.

Proposed resolution

I think, it is not a random behavior, because the source code looks like it should work in any case (after some inspecting). Some of examples in @usage section sets multiple IDs in the option, too. I think the documentation can be precised:

  • "entity_id" option accepts comma-separated list of IDs (instead of single entity ID)
  • maybe the option itself can be renamed to "entity_ids" (instead of entity_id)

I am willing to work on this issue.

πŸ“Œ Task
Status

Active

Version

2.1

Component

Documentation

Created by

πŸ‡ΈπŸ‡°Slovakia tomas.teicher

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024