packages/warriorjs-cli/src/ui/requestChoice.js
async function requestChoice(message, items) {
  const answerName = 'requestChoice';
  const answers = await inquirer.prompt([
    {
      message,
      name: answerName,
      type: 'list',
      choices: getChoices(items),
    },
  ]);
  return answers[answerName];
}
async function requestChoice(message, items) {
  const answerName = 'requestChoice';
  const answers = await inquirer.prompt([
    {
      message,
      name: answerName,
      type: 'list',
      choices: getChoices(items),
    },
  ]);
  return answers[answerName];
}
async function requestChoice ( message , items ) { const answerName = 'requestChoice' ; const answers = await inquirer . prompt ( [ { message , name : answerName , type : 'list' , choices : getChoices ( items ) , } , ] ) ; return answers [ answerName ] ; }
Requests a selection of one of the given items from the user.

@param {string} message The prompt message.
@param {any[]} items The items to choose from.
Requests a selection of one of the given items from the user .