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
will create runners in temp/ that will be added into projects composer.json into extra: bins and composer will then link them to vendor/bin.
The runners must get the commands by searching of tags on Container, so the command doesn't have to be run every time you add Command.
Every command will be in "default" group by default, that will be available from www/index.php. If you add it to another group, it will no longer be in "default" group, becase the "default" group will be added only when command has no groups. That means you could still add it to "default" group.
You should also be able to create your own runner and add some custom logic. Therefore there has to be a factory that will create the Console\Application object with commands from given group and you could then wrap it or whatever. This one needs a bit more thinking :)
Motivation: on the general runner you don't need to see crons and every single tool, you only need few basic commands like orm:validate etc. When you get over 20+ commands it get's confusing. This separation should make the usage and orientation easier.
The text was updated successfully, but these errors were encountered:
I like the idea of separation of the console commands per group/extension/library.
I'm not sure about custom logic part maybe if you could expand on. So far it looks like bad design or need for separate binary/application that handles different stuff.
Something like
will create runners in
temp/
that will be added into projectscomposer.json
intoextra: bins
and composer will then link them tovendor/bin
.The runners must get the commands by searching of tags on Container, so the command doesn't have to be run every time you add Command.
Every command will be in "default" group by default, that will be available from
www/index.php
. If you add it to another group, it will no longer be in "default" group, becase the "default" group will be added only when command has no groups. That means you could still add it to "default" group.Then you could run them from there afterwards.
You should also be able to create your own runner and add some custom logic. Therefore there has to be a factory that will create the Console\Application object with commands from given group and you could then wrap it or whatever. This one needs a bit more thinking :)
Inspired by @VasekPurchart
Motivation: on the general runner you don't need to see crons and every single tool, you only need few basic commands like
orm:validate
etc. When you get over 20+ commands it get's confusing. This separation should make the usage and orientation easier.The text was updated successfully, but these errors were encountered: