packages/warriorjs-cli/src/ui/requestInput.js
async function requestInput(message, suggestions = []) {
  const answerName = 'requestInput';
  const answers = await inquirer.prompt([
    {
      message,
      suggestions,
      name: answerName,
      type: suggestions.length ? 'suggest' : 'input',
    },
  ]);
  return answers[answerName];
}
async function requestInput(message, suggestions = []) {
  const answerName = 'requestInput';
  const answers = await inquirer.prompt([
    {
      message,
      suggestions,
      name: answerName,
      type: suggestions.length ? 'suggest' : 'input',
    },
  ]);
  return answers[answerName];
}
async function requestInput ( message , suggestions = [ ] ) { const answerName = 'requestInput' ; const answers = await inquirer . prompt ( [ { message , suggestions , name : answerName , type : suggestions . length ? 'suggest' : 'input' , } , ] ) ; return answers [ answerName ] ; }
Requests input from the user.

@param {string} message The prompt message.
@param {string[]} suggestions The input suggestions.
Requests input from the user .