Skip to content

feat: Edit list type #50

@alanbccoe

Description

@alanbccoe

I'm trying to programmatically modify tfvars files, but it appears attribute append doesn't work for them.

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"

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions