🎉 tfsort 0.4.0 - The Big Rewrite! 🎉
This version is a significant rewrite from the ground up, focusing on robustness, and a much-improved user experience.
✨ Highlights / What's New?
- 🚀 Complete Rewrite with Native HCL Power:
tfsort
now leverages native HCL libraries. This means more accurate parsing, better handling of complex HCL structures, and a more reliable sorting mechanism for your Terraform configurations. - 📝 Comment Preservation: Your comments are safe! One of the most requested features,
tfsort
now intelligently preserves comments within yourvariable
andoutput
blocks during sorting. - 📂 Recursive Sorting: Introducing the
-r
or--recursive
flag! You can now sortvariable
andoutput
blocks in Terraform files across an entire directory and its subdirectories with a single command. - ቧ Piping & STDIN/STDOUT Support:
tfsort
now seamlessly integrates into your shell pipelines. You can pipe content directly intotfsort
for processing and receive the sorted output on STDOUT, perfect for scripting and automation. - 🏗️ Restructured & More Robust Logic: The internal architecture has been revamped for better maintainability and more predictable sorting behavior.
Thank you for your continued support and valuable feedback that drove these changes!
Changelog
- 443aba9 Merge pull request #52 from AlexNabokikh/rewrite
- f65d7bf Merge pull request #58 from AlexNabokikh/38-feature-request---recursive-option-to-sort-variables-and-outputs-files-recursively
- 17f9378 chore: addessed linter errors
- cdbadc5 chore: bumped go version to 1.24
- 9ec3f33 ci: updated go releaser settings
- e6d2941 ci: updated linter rules
- 253eada ci: updated release pipeline
- bb38c5a ci: use latest golangci version
- 21dee6c feat(#38): added recursive option
- ac4dc62 feat(#43): added piping stdout to tfsort
- 26c9ed8 feat: restructured code
- c76608f feat: rewrite using native hcl libraries
- 67a0cca feat: updated ci file
- 8a874e1 fix(deps): bumped deps