Nested questions / includes #420
Honest-Objections
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
What would be a use case for this? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's not uncommon to need/template for loops. This use cases is only handled for a predefined amount at the moment using
!include loop_questions.yaml
However the ability to do something such as the following would make copier far more powerful:
This would then populate
ice_cream_orders
as a list of objects:ice_cream_orders: [ {type: magnum, servette: False } ]
. The user would be prompted to fill out theice_cream_orders
questions for the amount of times they answered inice_cream_quantity
I'm not set on the implementation at all, but this would make copier essentially feature complete without extension as far as I'm concerned. The ability to use a git module for the include would be a great bonus
Beta Was this translation helpful? Give feedback.
All reactions