-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Issue:
Every time a new command is created, it needs to be added manually to the project's config/autoload/cli.global.php file.
Goal:
- make
dot-cliautomatically identify commands in project so it's no longer needed adding them manually in a config file - make feature toggleable so that when disabled,
dot-clidoes not try to find commands but reads them from the config file
Solution:
Run through each module's dependencies and look for any class that is an instance of Symfony\Component\Console\Command\Command.
After identifying commands, we can register them automatically in the application.
Feature should be enabled by default, but it needs a configuration in the config file
'autodiscovery' => [
'enabled' => true,
],where it can be disabled making dot-cli see only the pre-configured commands.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request