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
In an interactive session, often we're prompted over and over again for the same class of prompt. It would be useful to be able to have Y/n/A, where "A" is always (or "Yes, to all".)
I came here from pnpm/pnpm#6778 which has the following prompt:
if(opts.confirmModulesPurge??true){constconfirmed=awaitenquirer.prompt({type: 'confirm',name: 'question',message: importers.length===1
? `The modules directory at "${importers[0].modulesDir}" will be removed and reinstalled from scratch. Proceed?`
: 'The modules directories will be removed and reinstalled from scratch. Proceed?',initial: true,})
Adding support for an always option would entail some sort of callback to take a special action if the user selected this option, e.g.
always: ()=>{opts.confirmModulesPurge=true}
The text was updated successfully, but these errors were encountered:
In an interactive session, often we're prompted over and over again for the same class of prompt. It would be useful to be able to have Y/n/A, where "A" is always (or "Yes, to all".)
I came here from pnpm/pnpm#6778 which has the following prompt:
Adding support for an always option would entail some sort of callback to take a special action if the user selected this option, e.g.
The text was updated successfully, but these errors were encountered: