-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Feature Request]: TODO list for make commands #759
Comments
I don't think this is necessary atm
Do you intend this command to also make regular view files, or only components? I think this will be especially useful to make view components
Hmm, a flag could work. If no flags were provided, you'd get a dropdown list. But maybe you should use an enum instead of a flag?
Both are cool, I think the most useful implementation would be
Maybe just a flag in
Hmm, not sure if this is really useful. By the time you've ran the command, you could have also made the class manually. |
I shared some thoughts, but overall great list, I'm really excited about this! It's ok to keep it as one issue, I'd prefer separate PRs though :) |
You're right, updated 😄
Yes that was my thought when I wrote
This makes sense to me, I'd go for an enum match for the first parameter "type" and then if nothing given, we give a dropdown list.
I think it's the better choice. I'll check later but I think all config are discovered by interface or something like that, so even the select prompt could be automated 😄
Yeah, probably better 👌
True, same goes for command bus and other things with no boilerplate in it. |
Description
Hey @brendt This is my TODO list for future make commands that I'll work on soon
Tell me if you prefer to skip issue and make it and discord or elsewhere.
Could you assign me to this ?
Maybe you can tell me if you want some stuff in priority or if some commands seems useless for you.
I'll update this list while reading the whole docs
make:initializer
make:response
make:route
( for custom routes, not sure if it's helpful )make:view
( maybe one command with flags to make class or class component or raw view file )make:middleware
( with some flags like--http
for middleware type )make:config
( not sure if it's helpful, but it could create a file namedxxx.config.php
with the suggested name as usual and maybe return a basic config object ? ) || Or another idea could be to have a select component where user can choose the config type to create ( e.g.DatabaseConfig
orEventBusConfig
other config types )make:migration
=> could create a migration class or with a flag like--raw
a sql migrationmake:command
=> a generator command that make another command, the circle is now complete 😄make:generator-command
=> maybe a basic stub that follow other basic make commands usingPublishesFiles
and promptsmake:event
ormake:event-handler
=> a class with a method with the#[EventHandler]
attributemake:discovery
=> is it ready yet ?Benefits
Keep an eye on progress of make commands 😄
The text was updated successfully, but these errors were encountered: