yq icon indicating copy to clipboard operation
yq copied to clipboard

Support HCL

Open nikolay opened this issue 2 years ago • 4 comments

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

nikolay avatar Oct 27 '23 19:10 nikolay

That would be an awesome addition!

g13013 avatar May 17 '24 14:05 g13013

@g13013 I agree. There's no viable alternative at this moment, and Terraform (or OpenTofu), Terramate, and Terragrunt ecosystems will greatly benefit from it.

nikolay avatar May 17 '24 19:05 nikolay

adding my + vote - this would be great and useful to have

gkid avatar Aug 12 '24 08:08 gkid