-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
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
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed