Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ermal-abiti opened this issue Sep 9, 2022 · 1 comment
Open

Comments

@ermal-abiti
Copy link

ermal-abiti commented Sep 9, 2022

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').

@codeBelt
Copy link
Owner

codeBelt commented Sep 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants