Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-o hcl outputs json #9

Open
ayodelecaleb opened this issue Feb 26, 2022 · 1 comment
Open

-o hcl outputs json #9

ayodelecaleb opened this issue Feb 26, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ayodelecaleb
Copy link

Hi Im trying to parse an terraform file to take advantage of jq features which works very well but the problem that i am having is that the -o output still outputs back to JSON instead of hcl output

here is my syntax:

cat test.hcl | wildq -i hcl -o hcl '.'

please let me know if im doing something wrong

@ahmet2mir
Copy link
Owner

ahmet2mir commented Feb 27, 2022

Hello,

Unfortunately HCl output is not supported ( see https://github.com/ahmet2mir/wildq#supported-file-types)

Maybe you could pipe the json with https://github.com/kvz/json2hcl ?

I let the issue open, will check soon to support it

@ahmet2mir ahmet2mir added the enhancement New feature or request label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants