packages/warriorjs-cli/src/ui/requestConfirmation.js
async function requestConfirmation(message, defaultAnswer = false) {
  const answerName = 'requestConfirmation';
  const answers = await inquirer.prompt([
    {
      message,
      name: answerName,
      type: 'confirm',
      default: defaultAnswer,
    },
  ]);
  return answers[answerName];
}
async function requestConfirmation(message, defaultAnswer = false) {
  const answerName = 'requestConfirmation';
  const answers = await inquirer.prompt([
    {
      message,
      name: answerName,
      type: 'confirm',
      default: defaultAnswer,
    },
  ]);
  return answers[answerName];
}
async function requestConfirmation ( message , defaultAnswer = false ) { const answerName = 'requestConfirmation' ; const answers = await inquirer . prompt ( [ { message , name : answerName , type : 'confirm' , default : defaultAnswer , } , ] ) ; return answers [ answerName ] ; }
Requests confirmation from the user.

@param {string} message The prompt message.
@param {boolean} defaultAnswer The default answer.
Requests confirmation from the user .