toolbox
toolbox copied to clipboard
Entity Generation
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.
+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
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
@jdmcd Thanks for the feedback! I agree with your input and want semantic generation to be a feature.