You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please add support for some sort of callback for when the prompt is finished (and valid)?
constSTORAGE_NAME='name';awaitinquirer.prompt({type: 'input',name: 'name',message: 'What is your name?',default: localStorage.getItem(STORAGE_NAME),done: (answer)=>localStorage.setItem(STORAGE_NAME,answer),});
The text was updated successfully, but these errors were encountered:
You're right, that's what I do now. I guess the example is bad :) It's useful when you have an array of prompts, and quit halfway through for some reason :)
Hi, with the release of the new API, I'm not really open to adding more control flow. The reasons are somewhat covered in the release announcement #1214 - and with the new API, you'd own control of the flow completely; this mean you'll get the answer after each prompt.
Thanks for reaching out, and I hope that alternative will work for you.
Could you please add support for some sort of callback for when the prompt is finished (and valid)?
The text was updated successfully, but these errors were encountered: