Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/northwood-labs/hcl-formatter
HCL2 formatter, extracted from Terraform itself. This is the same code that powers `terraform fmt`.
https://github.com/northwood-labs/hcl-formatter
extracted format formatter hcl hcl2 terraform
Last synced: 5 days ago
JSON representation
HCL2 formatter, extracted from Terraform itself. This is the same code that powers `terraform fmt`.
- Host: GitHub
- URL: https://github.com/northwood-labs/hcl-formatter
- Owner: northwood-labs
- License: mpl-2.0
- Created: 2022-04-10T20:04:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T15:47:29.000Z (7 months ago)
- Last Synced: 2024-12-24T04:40:00.401Z (10 days ago)
- Topics: extracted, format, formatter, hcl, hcl2, terraform
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HCL2 Formatter
## Overview
This is the code that facilitates `terraform fmt`, and was extracted from the Terraform project at [`c94a6102`](https://github.com/hashicorp/terraform/blob/c94a6102df62017766f4cc2c2a04c930c0a2c465/command/fmt.go). Only minor changes have been applied to turn this into a standalone, importable library for those of us who work with HCL outside of Terraform.
I don't expect this code to change very much, so don't freak out if there haven't been commits in years (it's not _abandoned_, it's just _complete_). It should very much still work for standard HCL2 formatting.
## Contributing
If you want to see changes, contribute upstream to the Terraform project. I'll occasionally review any changes between upstream and this project and merge them in.
## License and Authorship
Authorship by the [Terraform Contributors](https://github.com/hashicorp/terraform/graphs/contributors). The contents of this file are licensed under the terms of the [Mozilla Public License 2.0](https://github.com/hashicorp/terraform/blob/master/LICENSE).