PyInquirer
PyInquirer copied to clipboard
Non-automatic 'yes'
Hi! I believe I've already seen this issue here but can't find it.
Would it be possible to include a parameter for the "type: confirm" to not automatically react on keyboard? Instead wait for "y" or "yes"?
Reasoning:
For a few of my functions there are confirmations and I want to be able to run it by yes | myscript --function, not it terminates with an exception.
Something like:
questions = [
{
'message': msg,
'name': 'continue',
'type': 'confirm',
}
]
answers = prompt(questions, style=QSTYLE, react=True/False)