You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[https://fly.io/phoenix-files/customizing-phoenix-generators/](Customizing Phoenix Generators) shows how to create custom templates to act as overrides to default generators from Phoenix mix tasks. It would be nice to generate a resource from the command line similar to how it can be done for Ecto schemas in traditional Phoenix projects.
Describe alternatives you've considered
Please close if this is already available. I haven't looked at all the CLI options provided, but I don't recall any resource generator tasks.
Express the feature either with a change to resource syntax, or with a change to the resource interface
mix ash.gen.resource Foo id:uuid title:string
Additional context
Many other decisions go into resource modeling but this could help remove some of the "getting started" pain.
The text was updated successfully, but these errors were encountered:
👋 There is currently a pull request for this which I've provided some feedback on but it's not been wrapped up yet. I'd like to have a better overall generator story with 3.0 as well, but it may have to come after 3.0 releases.
Describe the solution you'd like
[https://fly.io/phoenix-files/customizing-phoenix-generators/](Customizing Phoenix Generators) shows how to create custom templates to act as overrides to default generators from Phoenix mix tasks. It would be nice to generate a resource from the command line similar to how it can be done for Ecto schemas in traditional Phoenix projects.
Describe alternatives you've considered
Please close if this is already available. I haven't looked at all the CLI options provided, but I don't recall any resource generator tasks.
Express the feature either with a change to resource syntax, or with a change to the resource interface
Additional context
Many other decisions go into resource modeling but this could help remove some of the "getting started" pain.
The text was updated successfully, but these errors were encountered: