Detect dependencies on console commands
I know, this surely not easy to implement, but it would be awesome, if usages of console commands could be detected.
So for example, we have a module, which calls the regenerate:category:path from https://github.com/elgentos/magento2-regenerate-catalog-urls/blob/master/src/Console/Command/RegenerateCategoryPathCommand.php.
Nothing else from Elgentos_RegenerateCatalogUrls is used, only this console command.
So we definitely have a dependency here, which is not detected.
If there would be any way to solve that, it would be really appreciated.
The code pretty much looks like this:
$urlPathRegenerateCommand = $application->find('regenerate:category:path');
$input = new ArrayInput(['cids' => $categoryIds, '--store' => 'all']);
$output = new NullOutput();
$urlPathRegenerateCommand->run($input, $output);
I've picked this up in version 2.2.2 which should now be able to detect CLI dependencies (scanning for find()).
Nice - I guess we can close this, then :)