generate-template-files icon indicating copy to clipboard operation
generate-template-files copied to clipboard

[Question] Is there a way I can call multiple options at once

Open ermal-abiti opened this issue 1 year ago • 1 comments

generateTemplateFiles([
 { option: "Create controller", output: "src/controllers"... },
 { option: "Create model", output: "src/models"...},
 { option: "Create route", output:"src/routes" ... },
])

Is there any way I can call these multiple options at once ? For example i wanna create a user controller, route, and model at once (by just giving a name parameter as 'user').

ermal-abiti avatar Sep 09 '22 10:09 ermal-abiti

Sorry there is not. You would have to create another options and copy all the template files to a single folder and have it output that way. You would have duplicated templates files which is not idea but it could be done.

codeBelt avatar Sep 09 '22 15:09 codeBelt