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

[feature] Indexing #119

Open
ryan-ph opened this issue Jun 24, 2024 · 0 comments
Open

[feature] Indexing #119

ryan-ph opened this issue Jun 24, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ryan-ph
Copy link
Member

ryan-ph commented Jun 24, 2024

Currently there is no support for indexing on a list. Ideally we should be able to query and write to specific objects within a list. For example, if we have the following HCL file:

# attrs.tf
attribute = ["str1", "str2", "str3"]

I would expect the following query to work and return the following result:

$ hcledit read -o go-template="{{.Value}}" "attribute[1]" attrs.tf
str2
@ryan-ph ryan-ph added the help wanted Extra attention is needed label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant