yq
yq copied to clipboard
Support HCL
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
That would be an awesome addition!
@g13013 I agree. There's no viable alternative at this moment, and Terraform (or OpenTofu), Terramate, and Terragrunt ecosystems will greatly benefit from it.
adding my + vote - this would be great and useful to have