Skip to content

Only add commands if scaffold is already loaded.#104

Merged
danielbachhuber merged 3 commits intomasterfrom
loading-order-fix
May 2, 2017
Merged

Only add commands if scaffold is already loaded.#104
danielbachhuber merged 3 commits intomasterfrom
loading-order-fix

Conversation

@schlessera
Copy link
Copy Markdown
Member

With the new hooks introduced in wp-cli/wp-cli@7fcee0e , we can now only load the commands if the parent they depend on has already been added.

This is needed because of the added flexibility provided by the bootstrap refactoring.

See wp-cli/wp-cli#3872

With the new hooks introduced in wp-cli/wp-cli@7fcee0e , we can now only load the commands if the parent they depend on has already been added.

This is needed because of the added flexibility provided by the bootstrap refactoring.

See wp-cli/wp-cli#3872
@schlessera
Copy link
Copy Markdown
Member Author

@danielbachhuber Don't merge just yet, this is only added for testing the bootstrap stuff atm.

In general, how do we go about updating commands if they require changes to the framework to work properly?

@schlessera schlessera added the bug label May 2, 2017
schlessera added a commit to wp-cli/wp-cli that referenced this pull request May 2, 2017
@schlessera schlessera added this to the 0.3.0 milestone May 2, 2017
@schlessera schlessera requested a review from danielbachhuber May 2, 2017 16:31
@schlessera
Copy link
Copy Markdown
Member Author

What's up with CircleCI? It seems to fail on loading Composer dependencies. Looks like it might have caching issues...

@danielbachhuber danielbachhuber merged commit 96d0b61 into master May 2, 2017
@danielbachhuber danielbachhuber deleted the loading-order-fix branch May 2, 2017 16:39
@danielbachhuber
Copy link
Copy Markdown
Member

I think it's caching.

schlessera pushed a commit that referenced this pull request Aug 9, 2022
Only add commands if `scaffold` is already loaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants