Releases: patrickdappollonio/tgen
v2.1.0
New update, who dis?
Welcome to a much needed update for tgen
since last year! This update improves Go by bumping the app to 1.24. There are also 2 noteworthy features, let's dive into them!
Helm-Style Command-Line Value Setting (PR #48)
This release introduces powerful new command-line flags that bring Helm-style value setting capabilities to tgen
. You can now set template values directly from the command line using --set
and --set-string
flags, making it easier to override configuration values without modifying values files.
The --set
flag provides intelligent type inference, automatically converting values to their appropriate types (booleans, integers, floats, or strings). Meanwhile, --set-string
forces all values to be treated as strings, giving you precise control over data types. Both flags support advanced features including nested value setting with dot notation (app.name=myapp
), comma-separated multiple values, array syntax with curly braces ({web,api,database}
), and array indexing (servers[0].port=80
). The implementation properly handles YAML boolean values, special values like null
and empty arrays, and includes comprehensive escaping for special characters.
Directory Reading Functions (PR #49)
The template function library has been expanded with four new directory reading functions that enable templates to dynamically discover and iterate over filesystem contents. The new functions include readdir
and readlocaldir
for non-recursive directory listing, as well as readdirrecursive
and readlocaldirrecursive
for recursive directory traversal.
These functions return sorted arrays of file and directory names, with directories distinguished by trailing slashes. The readdir
and readdirrecursive
functions can access any directory the process has permissions for, while their readlocal
counterparts are security-restricted to only access paths within the current working directory. This dual approach provides flexibility for trusted environments while maintaining security boundaries when needed. All functions handle symbolic links safely by not following them, and the recursive variants use forward slashes for cross-platform consistency.
What's Changed
- Bump github.com/Masterminds/sprig/v3 from 3.2.3 to 3.3.0 by @dependabot[bot] in #43
- Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 by @dependabot[bot] in #42
- Bump golang.org/x/crypto from 0.26.0 to 0.31.0 in the go_modules group by @dependabot[bot] in #44
- Bump github.com/spf13/cobra from 1.8.1 to 1.9.1 by @dependabot[bot] in #46
- Fix skip publish on goreleaser by @patrickdappollonio in #45
- Bump goreleaser/goreleaser-action from 5 to 6 by @dependabot[bot] in #41
- Bump golang.org/x/crypto from 0.31.0 to 0.35.0 in the go_modules group by @dependabot[bot] in #47
- Add support for Helm-style set. by @patrickdappollonio in #48
- Add support for reading directories (both recursive and non-recursive). by @patrickdappollonio in #49
Full Changelog: v2.0.3...v2.1.0
v2.0.3
Changelog
- 1998d26 Add rnditem. Bump Go version.
- a4e557b Bump actions/checkout from 3 to 4
- bf1d888 Bump actions/setup-go from 4 to 5
- 45ea6be Bump actions/upload-artifact from 3 to 4
- 2640998 Bump github.com/spf13/cobra from 1.7.0 to 1.8.0
- 3eaa6f7 Bump github/codeql-action from 2 to 3
- 5dfd28c Bump golang.org/x/crypto from 0.3.0 to 0.17.0
- ee1b4f4 Bump goreleaser/goreleaser-action from 4 to 5
- 9144a3c Merge pull request #33 from patrickdappollonio/dependabot/github_actions/actions/checkout-4
- 1f9a08a Merge pull request #34 from patrickdappollonio/dependabot/github_actions/goreleaser/goreleaser-action-5
- 20c0538 Merge pull request #35 from patrickdappollonio/bump-go-add-rnditem
- e65b82a Merge pull request #36 from patrickdappollonio/dependabot/go_modules/github.com/spf13/cobra-1.8.0
- 7ea6bc0 Merge pull request #37 from patrickdappollonio/dependabot/github_actions/actions/setup-go-5
- 69c6014 Merge pull request #38 from patrickdappollonio/dependabot/github_actions/github/codeql-action-3
- db1ff85 Merge pull request #39 from patrickdappollonio/dependabot/github_actions/actions/upload-artifact-4
- e818846 Merge pull request #40 from patrickdappollonio/dependabot/go_modules/golang.org/x/crypto-0.17.0
v2.0.2
Changelog
- 33a4dd0 Add push flow.
- 421c4b3 Add support for required.
- 2baccd0 Add support for temporary artifacts.
- f889590 Merge pull request #32 from patrickdappollonio/required-support
- 71dd19c Update additional dependencies.
- ded7bf4 Update goreleaser with appropriate naming convention.
- 097b38a Update incorrectly swapped dependency.
v2.0.1
Changelog
- c451a37 Add dependabot.
- 189f17b Bump actions/setup-go from 3 to 4
- 0100b2a Bump github.com/spf13/cobra from 1.6.1 to 1.7.0
- f90ebd0 Bump goreleaser/goreleaser-action from 3 to 4
- 9fdb85a Merge pull request #18 from patrickdappollonio/renovate/actions-checkout-3.x
- f806bb6 Merge pull request #27 from patrickdappollonio/move-to-sprig
- 4c2116c Merge pull request #28 from patrickdappollonio/dependabot/github_actions/goreleaser/goreleaser-action-4
- 80a2b1d Merge pull request #29 from patrickdappollonio/dependabot/github_actions/actions/setup-go-4
- 0e26c7d Merge pull request #30 from patrickdappollonio/dependabot/go_modules/github.com/spf13/cobra-1.7.0
- db7d543 Move to Sprig.
- 22b51bd Update README.md
- 6841659 Update actions/checkout action to v3.1.0
v2.0.0
v1.2.2
Changelog
- 71bb5ad Add alias for lowercase and uppercase.
- cf483d5 Add release badge.
- 985e952 Add renovate.json
- c7a6f6c Add shuffle, first, last.
- 1614bcf Add support for "after".
- 20abe0d Bump CI Go version to 1.19
- cb710ad Create codeql-analysis.yml
- f35a2f4 Expose functions.
- f8b6e5f Merge pull request #10 from patrickdappollonio/renovate/actions-checkout-3.x
- 40c8b9a Merge pull request #11 from patrickdappollonio/renovate/actions-setup-go-3.x
- 03deb6e Merge pull request #12 from patrickdappollonio/renovate/actions-checkout-2.x
- 7f2ebb8 Merge pull request #13 from patrickdappollonio/renovate/github-codeql-action-2.x
- fb416e8 Merge pull request #14 from patrickdappollonio/renovate/goreleaser-goreleaser-action-3.x
- f7e01da Merge pull request #16 from patrickdappollonio/new-functions
- 660098e Merge pull request #17 from patrickdappollonio/new-functions
- 7bba579 Merge pull request #4 from patrickdappollonio/renovate/configure
- 5973fb7 Merge pull request #5 from patrickdappollonio/renovate/actions-checkout-2.x
- ce73342 Merge pull request #7 from patrickdappollonio/renovate/actions-checkout-2.x
- 87213ae Merge pull request #8 from patrickdappollonio/renovate/github.com-spf13-cobra-1.x
- 37c5169 Remove deprecated package.
- 4fc3c1f Update README.md
- a7c700b Update actions/checkout action to v2.3.5
- 1fb03a2 Update actions/checkout action to v2.4.0
- e499631 Update actions/checkout action to v2.4.2
- 4cd40f5 Update actions/checkout action to v3
- 3bee9d9 Update actions/setup-go action to v3
- f1dea89 Update github/codeql-action action to v2
- ad37c53 Update goreleaser/goreleaser-action action to v3
- 7226a3c Update module github.com/spf13/cobra to v1.5.0
- 1bda74f Update to add new functions.
v1.2.1
Changelog
94e697d Add Issue Template.
d4a27ae Add example for incorrect file for readlocalfile.
453c26f Add new functions. Improve documentation for template functions.
2105ba2 Add testing step on Release.
a329ff5 Change wording
bff1bc8 Create LICENSE
5f2dad0 Merge pull request #2 from patrickdappollonio/qol-improvements
aca4341 Move app function to its own to allow testing.
5dc3d24 Quality of Life improvements.
df32c38 Remove Travis badge.
a9f18c2 Remove one depth on titles.
4c49e84 Update CI for pushes and PRs.
v1.2.0
Changelog
f1ff75b Add Github Workflow instead of Travis.
76acaab Add more functions to the template, inspired by Helm/Twig.
076f8ab Change Go version.
200963d Empty update to trigger CI.
24d7a98 Replace with Goreleaser.
bb6fb28 Update Go version. Update requirements. Add new functions and example in README.
v1.1.1
v1.1.1
v1.1.0
v1.1.0