CITGuru / PyInquirer

A Python module for common interactive command line user interfaces
MIT License
1.94k stars 236 forks source link

Question based on previous answer #47

Open GeiserX opened 5 years ago

GeiserX commented 5 years ago

This maybe is kind of the same question as #22

I would like to have like

questions = [
    {
        'type': 'list',
        'name': 'project',
        'message': 'QUESTION A',
        'choices': ['A', 'B', 'C']
    },
    {
        'type': 'input',
        'name': 'ask',
        'message': 'Why did you choose {}?'.format(AnswerToTheFirstQuestion)
    },
]

answers = prompt(questions, style=style)

Is there any function I can use to get the value of the previous question?

Thank you!

AndrewOwenMartin commented 5 years ago

See my workaround https://github.com/CITGuru/PyInquirer/issues/49#issuecomment-487054916, it doesn't help for #22 unfortunately.