jgstew / jgstew-recipes

For JGStew's AutoPkg Recipes and Processors
MIT License
8 stars 2 forks source link

Improve Processor TemplateDictionaryAppendDict to take name of env var OR dict #11

Open jgstew opened 3 years ago

jgstew commented 3 years ago

Code:

Currently, it takes a Dict defined within an argument, but what if the argument is the name of an EnvVar that contains a dict instead?

jgstew commented 3 years ago

I think this issue is basically solved by this processor here: https://github.com/jgstew/jgstew-recipes/commit/37d2166644c23b709aa296a51e103eb4d900f4ee

You can now have arbitrary input env vars appended to the template dictionary automatically.