We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create simple hcl file example.tf:
example.tf
data "foo" { "bar" = " - \"one\"\n - \"-two\"\n - \"three\"" }
Run: cat example.tf | hclq get --raw 'data.foo.bar'
cat example.tf | hclq get --raw 'data.foo.bar'
Expect:
- "one" - "-two" - "three"
Get:
- "one" - "-two" - "three <- missing the last double quote here
This 2 scenarios would work fine without problem:
data "foo" { "bar" = " - \"one\"\n - \"-two\"\n - \"three\"\n" <- add a new line \n at the end here }
or
data "foo" { "bar" = " - 'one'\n - '-two'\n - 'three'" <- use single quote ' instead of escape double quotes \" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Create simple hcl file
example.tf
:Run:
cat example.tf | hclq get --raw 'data.foo.bar'
Expect:
Get:
This 2 scenarios would work fine without problem:
or
The text was updated successfully, but these errors were encountered: