summaryrefslogtreecommitdiff
path: root/cmd/hclfmt
AgeCommit message (Collapse)Author
2023-02-28[COMPLIANCE] Add Copyright and License Headers (#586)hashicorp-copywrite[bot]
* [COMPLIANCE] Add Copyright and License Headers * add copywrite file and revert headers in testdata --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
2022-12-20hclfmt: avoid rewrites when there are no changes in a fileJörg Thalheim
this is faster for large trees and also helps to make tools like [treefmt](https://github.com/numtide/treefmt) to work, since it does not update the mtime of the file.
2019-09-09Unfold the "hcl" directory up into the rootMartin Atkins
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-09Change module path to github.com/hashicorp/hcl/v2Martin Atkins
This is in preparation for the first v2 release from the main HCL repository.
2018-01-27hclfmt: Have this tool call itself by the correct nameMartin Atkins
Its usage output was still reporting "zclfmt", which is a remnant of the experimental project that HCL was forked from.
2017-09-11hclparse: rename ParseZCL to ParseHCLMartin Atkins
2017-09-11Move the zcl package and its two parsing subpackages to "hcl" namesMartin Atkins
This is a super-invasive update since the "zcl" package in particular is referenced all over. There are probably still a few zcl references hanging around in comments, etc but this takes care of most of it.
2017-09-11Rename the ancillary packages from "zcl" to "hcl".Martin Atkins
The main "zcl" package requires a bit more care because of how many callers it has and because of its two subpackages, so we'll take care of that one separately.