yonaskolb / Genesis

Templating, scaffolding and generation tool
MIT License
193 stars 18 forks source link

Array options arguments support #9

Open aomathwift opened 4 years ago

aomathwift commented 4 years ago

It would be great to be able to pass specific options array like this. I am currently trying this implementation. If it goes well I will submit a PR.

If anyone has any other ideas on how to pass options, please let me know here.

-- options name: MyProject, targets.name: MyTarget, targets.type: application

or

-- options "name: MyProject, targets: [name: MyTarget, type: application]"
yonaskolb commented 2 years ago

For this I recommend either using the --option-path argument to load the options from an external file, or defining the options in the template. Would that solve your use case, or do the options need to be completely dynamic at the call site?