Skip to content

to_entries[] is not supported #1246

Closed
Closed
@SuperSandro2000

Description

Describe the bug
A clear and concise description of what the bug is.

Note that any how to questions should be posted in the discussion board and not raised as an issue.

Version of yq: 4.25.2
Operating system: maclinux
Installed via: NixOS

Input Yaml
data1.yml:

values:
  - global.region: qa-de-1

Command

yq '.values[] | to_entries[]' data1.yml

Actual behavior

Error: Bad expression, please check expression syntax

Expected behavior

key: global.region
value: qa-de-1

Additional context
This can be worked around with yq '.values[] | to_entries | .[]' data1.yaml but it would be cool to have the alias to be jq compatible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions