-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add option to specify package path for models #347
Add option to specify package path for models #347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
@stanislas-m any thoughts on this PR? Thanks! |
@kevinmcconnell It's on my todo list, I just didn't had the time to review it properly. :) |
@stanislas-m no worries, just thought I'd check :) |
This adds a new `--models-path` option to `soda generate model` that allows changing where the model will be created. The package name will be the last folder in the path. For example: soda generate model User --models-path models/admin ...would create the model files in `./models/admin`, and make them part of the `admin` package.
@stanislas-m that's updated now, per your feedback. Cheers. |
Thanks for your patience! |
This adds a new
--models-path
option tosoda generate model
that allows changing where the model will be created. The package name will be the last folder in the path.For example:
...would create the model files in
./models/admin
, and make them part of theadmin
package.This addresses #16 (which I found after discovering I wanted this feature for myself :) )