Closed (fixed)
Project:
drush_helmo
Component:
Drush-1005480
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2011 at 07:50 UTC
Updated:
18 Nov 2011 at 18:40 UTC
When using drush enity-type-read node --fields=bundles it's impossible to select ie only the page bundle. As field_info_* are added it could be nice to have a path into the fields.
Allow fields option to respect a path like
--fields=bundles/page/admin
--fields=**/label
--fields=**/page/**format
The result should still have the path intact with the resulting array.
Implement this.
Comments
Comment #1
clemens.tolboomThe current version supports commands like
resulting
Comment #2
clemens.tolboomThe work lies in having the wildcard as a start. This works ok
But have a wildcard upfront fails.
Comment #3
clemens.tolboomI fixed the wildcards.
I like this command
drush --debug entity-type-read --fields='**/label' `drush etr`as it gives all keys == 'label'.Comment #4
clemens.tolboomThis command works
drush er node `drush er node` --fields='**/und'But this fails
drush er node `drush er node` --fields='**/value'I suspect the [0] index in the result.
Comment #5
clemens.tolboomThis
works fine now.
Comment #6
clemens.tolboomComment #7
clemens.tolboomComment #8.0
(not verified) commentedUpdated the proposed solution.