yonaskolb / Genesis

Templating, scaffolding and generation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Array options arguments support

aomathwift opened this issue · comments

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]"

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?