Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #34, I added the ability for boilerplate variables to use Go templating syntax in their default value. The main use case for this was to be able to reuse values from other boilerplate variables. This works fine for strings, but the issue is if you want to reference another variable with a non-string type (e.g. list), the templating syntax doesn’t help, as it always returns a string.
The best solution I can come up with for now is to add support for a new
reference
keyword that allows you to specify that one variable should use the value of another variable. That value can be of any type.