code: async function getTemplate(templatesList, templateName = null) {
    if (!templateName) {
      const templatesArray = Object.entries(templatesList).map(([name, value]) => ({ name, value }))
      const { template } = await inquirer.prompt(templateQuestions.template(templatesArray))
      return template
    }
    if (templateName in templatesList) {
      return templatesList[templateName]
    }
    throw Error(`The template '${templateName}' does't exists`)
  }
docs: List templates on terminal or get the template (templateName config) from the folder of templates
  @param {array} templatesList to filter
  @param {string} templateName