disable template question

This commit is contained in:
Pierre Noël 2021-09-23 16:53:32 +02:00
parent a742f19e16
commit 03110962d6

View File

@ -60,7 +60,8 @@ async function getTemplateQuestion() {
*
* @returns Array of prompt question objects
*/
async function getPromptQuestions(projectName, template) {
// TODO: re-enabled once the template have been migrated to V4
async function getPromptQuestions(projectName /*, template */) {
return [
{
type: 'input',
@ -84,13 +85,14 @@ async function getPromptQuestions(projectName, template) {
},
],
},
{
type: 'confirm',
name: 'useTemplate',
when: !template,
message:
'Would you like to use a template? (Templates are Strapi configurations designed for a specific use case)',
},
// TODO: re-enabled once the template have been migrated to V4
// {
// type: 'confirm',
// name: 'useTemplate',
// when: !template,
// message:
// 'Would you like to use a template? (Templates are Strapi configurations designed for a specific use case)',
// },
];
}