Add --except-vendor and --only-vendor to artisan list#42732
Add --except-vendor and --only-vendor to artisan list#42732jwpage wants to merge 2 commits intolaravel:9.xfrom jwpage:artisan_list_except_vendor
--except-vendor and --only-vendor to artisan list#42732Conversation
artisan list--except-vendor and --only-vendor to artisan list
|
what is the difference with #42549? |
|
My bad: I didn't read well |
|
Thanks for your pull request to Laravel! Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include. If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions! If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response. |
|
I usually solve this issue without any additional code by just prefixing all my commands with "app"... then you can just do "php artisan list app" |
This PR replaces the default Symfony ListCommand with an extended ListCommand that supports newly introduced
--except-vendorand--only vendorflags. This is similar to the functionality available in theartisan route:listcommand.artisan listnormally will include all commands.artisan list --except-vendorwill include all commands except those defined by vendors (including Laravel)artisan list --only-vendorwill only include commands that have been defined by vendors (including Laravel)The inclusion of the
--except-vendorflag in particular will make it easy for developers coming into a new Laravel project to see what commands are available that are specific to that project.