PyInquirer icon indicating copy to clipboard operation
PyInquirer copied to clipboard

Non-automatic 'yes'

Open SonGokussj4 opened this issue 5 years ago • 0 comments

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)

SonGokussj4 avatar Jul 08 '20 08:07 SonGokussj4