Closed hjkatz closed 8 years ago
Please review the recent changes.
--parameters-cli
to --interactive
(hopefully for a more encompassed interactive mode in the future)I looked into the amount of effort for attempting to use the old stack during an update step to get the differences in parameters interactively, but it proved too high (for now). It would require a restructuring with a more direct call to dsl compile or something similar. This is because the params are parsed immediately as they are called in the dsl, instead of parsing the dsl then asking for params. This ordering makes it very difficult to even add the interactive mode in the first place.
I would recommend a restructuring of the cfntemplate.rb
file into 2 files. One for running, one for the template. Then you can add a compile/parse/extract step for all cli things first (such as params, tags, etc...), and after that you can use those parsed values to create the final template.
--parameters-cli
which will prompt the user for parameters values at runtime