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
I'm trying to programmatically modify tfvars files, but it appears attribute append doesn't work for them.
attribute append
E.g. given this file:
owner = [ "tom", "dave" ]
I was hoping I could append a new item with:
hcledit -f terraform.tfvars attribute append owner '"me"'
but this just replaces the whole list to give owner = "me"
owner = "me"
It'd be great if this program supported append/rm/set operations just on terraform vars in tfvars files.
Get does seem to work already - I haven't tried the others yet since I need append.
The text was updated successfully, but these errors were encountered:
Thank you for opening this.
It's a missing feature to add an element to list. To implement this, we need to a feature to hclwrite, which is a library we depends on.
Sorry, something went wrong.
No branches or pull requests
I'm trying to programmatically modify tfvars files, but it appears
attribute append
doesn't work for them.E.g. given this file:
I was hoping I could append a new item with:
but this just replaces the whole list to give
owner = "me"
It'd be great if this program supported append/rm/set operations just on terraform vars in tfvars files.
Get does seem to work already - I haven't tried the others yet since I need append.
The text was updated successfully, but these errors were encountered: