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
Consider allowing individual '--vars' via the command line instead of requiring a file #439
Comments
I'm not sure how easy it will be to implement this in Go the way you've requested to be honest. (handling complex/nested) objects. Would allowing JSON on the CLI meet your needs? Or is that not a useful feature?
Tagging @pedroMMM since he |
In my use case, I was calling Goss from Packer and I needed to inject multiple runtime values alongside my variables file to Goss. In my case, I just got around it by forking and expanding the Goss Packer Provisioner to support exactly what you just described since the Provisioner was already moving the variables file to the instance. I support adding a |
Yup, documentation should be clear that not only will vars-inline win, but no advanced deep merging will be done. |
* Add --vars-inline that is capable of overwriting --vars * Reinforce the --vars-inline overwrite of --vars * Clean up the TemplateFilter based on Code Climate feedback * Fix the Travis testing by ensuring all the checks are ran * Apply suggestions from code review for incorrect environment variable syntax Co-Authored-By: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com> Co-authored-by: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com>
released |
…ars (aelsabbahy#534) * Add --vars-inline that is capable of overwriting --vars * Reinforce the --vars-inline overwrite of --vars * Clean up the TemplateFilter based on Code Climate feedback * Fix the Travis testing by ensuring all the checks are ran * Apply suggestions from code review for incorrect environment variable syntax Co-Authored-By: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com> Co-authored-by: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com>
Some shells don't have process substitution, and environment variables can't be structured as easily when you want to pass in multiple inputs. It could be useful to pass in
--vars
without modifying a file for adhoc testing, or for just running things without requiring avars
file at all.A possible example
The text was updated successfully, but these errors were encountered: