Skip to content
New issue

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

Query: Conditional prompts in cookiecutter.json #2008

Open
vithalsm opened this issue Feb 2, 2024 · 0 comments
Open

Query: Conditional prompts in cookiecutter.json #2008

vithalsm opened this issue Feb 2, 2024 · 0 comments

Comments

@vithalsm
Copy link

vithalsm commented Feb 2, 2024

I have following requirement while writing a project template.

cookiecutter.json:
"project_name" : "test-proj"
"ptype": ["a", "b", "c"]

Now, based on ptype values entered, further sub options to be prompted.
For e.g.
if ptype==a"
Request for another option related to 'a'
else
Some other options

Wondering if its possible to implement something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant