Masayuki Morita
9d1235a5b4
hclwrite: Allow selecting blocks for updating
2019-10-01 15:59:10 -07:00
Martin Atkins
6c4344623b
Unfold the "hcl" directory up into the root
...
The main HCL package is more visible this way, and so it's easier than
having to pick it out from dozens of other package directories.
2019-09-09 16:08:19 -07:00
Martin Atkins
3327dee567
Change module path to github.com/hashicorp/hcl/v2
...
This is in preparation for the first v2 release from the main HCL
repository.
2019-09-09 15:46:40 -07:00
Martin Atkins
8cca983bca
hclwrite: Support for creating new blocks and clearing bodies
2018-11-04 01:13:13 +00:00
Martin Atkins
57c6d75eb8
hclwrite: Body.AppendBlock
...
This method allows a caller to generate a nested block within a body.
Since a nested block has its own content body, this now allows for deep
structures to be generated.
2018-11-03 09:21:43 -07:00
Martin Atkins
04d1413613
hclwrite: Split Attribute and Block into their own source files
...
These will grow to have significant logic of their own, so hiding them at
the end of the Body file makes things harder to read.
2018-11-03 09:21:43 -07:00