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

Entity Generation #397

Open
matthewjamesr opened this issue Jun 30, 2022 · 3 comments
Open

Entity Generation #397

matthewjamesr opened this issue Jun 30, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@matthewjamesr
Copy link

Describe the solution you'd like
I would like to propose the beginning implementation of commands to easily generate templates for new items such as:

  • Controllers
  • Migrations
  • Models

This implementation could be similar to options in other language frameworks such as Laravel's php artisan make:controller PhotoController, etc.

Community input
Please respond to this issue with other commands, features, etc. you think this update could or should include. I will keep the main issue updated over time.

@matthewjamesr matthewjamesr added the enhancement New feature or request label Jun 30, 2022
@0xTim
Copy link
Member

0xTim commented Jun 30, 2022

+1 to this - it would be good to offer this behaviour. The toolbox probably makes sense. Another option would be to do it as a SwiftPM plugin but that makes it more complicated to adopt, rather than vapor new make migration UserMigration etc

@jdmcd
Copy link
Member

jdmcd commented Jun 30, 2022

Huge +1 to this. It could also be cool to try and do something like vapor make migration UserMigration --from=Models/User and have it try to auto-synthesize the implementation from User.swift. That might be out of scope, though

@matthewjamesr
Copy link
Author

@jdmcd Thanks for the feedback! I agree with your input and want semantic generation to be a feature.

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

No branches or pull requests

3 participants