Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Consider allowing individual '--vars' via the command line instead of requiring a file #439
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
A possible example
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
* 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 <email@example.com> Co-authored-by: Ahmed Elsabbahy <firstname.lastname@example.org>