Skip to content

Support HCL #1844

Open
Open
@nikolay

Description

@nikolay

Please describe your feature request.
HCL is a JSON superset and has a Go library provided by the creator of the format - HashiCorp

Describe the solution you'd like
Adding an hcl and h types in the -p/--input-format and -o/--output-format options.

Describe alternatives you've considered
I've considered using yj to convert from HCL to JSON, apply jq, and then use yj again to convert JSON back to HCL, but it would be nice if yq supports HCL natively.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions