With the current 8.x-6.x branch we can run

$ drush @d7 etr node --format=ini --fields=**/label
node.label=Node
node.entity_keys.label=title
node.bundles.article.label=Article
node.bundles.page.label=Basic page
node.view_modes.full.label=Full content
node.view_modes.teaser.label=Teaser
node.view_modes.rss.label=RSS
node.view_modes.search_index.label=Search index
node.view_modes.search_result.label=Search result

TODO

- It does not work for Drupal 8
- Needs backport

Comments

clemens.tolboom’s picture

Version: 7.x-5.x-dev » 8.x-6.x-dev
clemens.tolboom’s picture

Title: Support for drush-8.x formats like ini and list » Support for drush-6.x formats like ini and list
(7.x-5.x $) ~/.../drush$ dd7 etr node --format=ini --fields=**/label
Array
(
    [node.label] => Node
    [node.entity keys.label] => title
    [node.bundles.article.label] => Article
    [node.bundles.page.label] => Basic page
    [node.view modes.full.label] => Full content
    [node.view modes.teaser.label] => Teaser
    [node.view modes.rss.label] => RSS
    [node.view modes.search_index.label] => Search index
    [node.view modes.search_result.label] => Search result
)

Code needs review (from git)

clemens.tolboom’s picture

Assigned: Unassigned » helmo
Status: Active » Needs review
clemens.tolboom’s picture

drush @xxx etr file --fields="view modes/*/custom settings" --format=ini

give nice list

file.view_modes.teaser.custom_settings=1
file.view_modes.full.custom_settings=
file.view_modes.preview.custom_settings=1
file.view_modes.rss.custom_settings=
file.view_modes.search_index.custom_settings=
file.view_modes.search_result.custom_settings=
file.view_modes.media_link.custom_settings=1
file.view_modes.media_original.custom_settings=1
clemens.tolboom’s picture

Issue summary: View changes

Update summary

helmo’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Drush 7.x and yml

clemens.tolboom’s picture

Assigned: helmo » Unassigned
Status: Closed (won't fix) » Active

I'm not sure why we should close this. This has nothing to do with YAML afaik.

The ini / properties format is still needed. Is that not in Drush 7.x?