Skip to content

External commands should be registered before custom commands#51

Closed
claudiu-cristea wants to merge 1 commit intoopeneuropa:masterfrom
claudiu-cristea:register-external-before-custom
Closed

External commands should be registered before custom commands#51
claudiu-cristea wants to merge 1 commit intoopeneuropa:masterfrom
claudiu-cristea:register-external-before-custom

Conversation

@claudiu-cristea
Copy link
Contributor

Problem

Right now, the dynamic/custom commands are registered in the TaskRunner constructor. The external commands, provided by 3rd party, are registered after TaskRunner has been constructed, in ./bin/run:

$runner = new TaskRunner();
$runner->registerExternalCommands($classLoader);

For this reason a custom command cannot add an external command as a task because at that moment the external command is not yet registered.

Solution

Call ::registerExternalCommands() from the TaskRunner constructor, just before calling ::registerDynamicCommands().

@ademarco
Copy link
Member

ademarco commented Jul 4, 2018

@claudiu-cristea we moved to the new native Robo plugin system, does this still happen on latest master?

@raqfialho raqfialho added the stale No activity for an extended period. label Jun 11, 2025
@raqfialho raqfialho closed this Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale No activity for an extended period.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants