We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following variables in cookiecutter.json file
"_site_locations": { "zone1": [ "SiteA", "SiteB", "SiteC" ], "zone2": [ "SiteD", "SiteE" ] }, "zone": ["zone1", "zone2"], "site" : [ "{{ cookiecutter._site_locations.get(cookiecutter.zone) }}" ],
My idea was to show the list of choices for site which is dynamically generated according to the selection made in zone
But in fact I'm getting the following results:
Select zone: 1 - zone1 2 - zone2 Choose from 1, 2 [1]: 1 Select site: 1 - ['SiteA', 'SiteB', 'SiteC'] Choose from 1 [1]:
Is there a way to fix that and show 3 choice items in site ?
The text was updated successfully, but these errors were encountered:
I fix this issue in PR #1768. Now the prompt will locks like that:
But, notice that the cookiecutter.json should looks like that:
cookiecutter.json
{ "_site_locations": { "zone1": [ "SiteA", "SiteB", "SiteC" ], "zone2": [ "SiteD", "SiteE" ] }, "zone": ["zone1", "zone2"], "site" : "{{ cookiecutter._site_locations.get(cookiecutter.zone) }}" }
I advice to close this issue after the PR will merge.
Sorry, something went wrong.
Anyone knows when this will be merged?
@ericof , I solve this issue in #1768 . Lets work on this PR
No branches or pull requests
Description:
I have the following variables in cookiecutter.json file
My idea was to show the list of choices for site which is dynamically generated according to the selection made in zone
But in fact I'm getting the following results:
Is there a way to fix that and show 3 choice items in site ?
The text was updated successfully, but these errors were encountered: