-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How about a function toBool? #258
How about a function toBool? #258
Comments
This would be really useful for helm-charts too, a bit surprised it's not already included in sprig as there are all other conversions. |
Hi. I forked the sprig and improve it with some useful functions. Your suggestion is implemented in my project. You can replace sprig to thixo as is. Thixo doesn't have any breaking changes. |
My solution is then to use |
argocd generattor has some limitation, possibly because of this |
## Description This pull request introduces three new functions `toBool`, `toUint` and `toUint64` to the conversion group ## Changes - New functions: `toBool`, `toUint` and `toUint64` - All conversion function are documented on https://docs.atom.codes/sprout ## Fixes Masterminds#258, Masterminds#307 ## Checklist - [x] I have read the **CONTRIBUTING.md** document. - [x] My code follows the code style of this project. - [x] I have added tests to cover my changes. - [x] All new and existing tests passed. - [x] I have updated the documentation accordingly. - [x] This change requires a change to the documentation on the website.
Hello everyone 👋, I wanted to let you know that this issue has been addressed in the fork of this project at go-sprout/sprout. The fix has been implemented starting from version For those looking for a solution, I recommend checking out the latest releases of the fork. This should help address the issue discussed in this thread. Thank you! |
Thanks a lot, @42atomys. I hope sprout succeeds in replacing sprig! |
You are welcome @felipecrs 🙏 |
Currently, I have to do something like:
To convert a string to boolean.
I would be good if we had another function for the conversions such as
toBool
.The text was updated successfully, but these errors were encountered: