Skip to content

Add --all flag to plugin delete#103

Merged
schlessera merged 3 commits intowp-cli:masterfrom
svenkaptein:feature-plugin-delete-all
Jul 31, 2018
Merged

Add --all flag to plugin delete#103
schlessera merged 3 commits intowp-cli:masterfrom
svenkaptein:feature-plugin-delete-all

Conversation

@svenkaptein
Copy link
Copy Markdown
Contributor

My first contribution so hopefully everything is OK.
Addressing issue #88

@schlessera schlessera added the command:plugin-delete Related to 'plugin delete' command label Jun 18, 2018

$successes = $errors = 0;

$plugins = $this->fetcher->get_many( $args );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 967-970 are not needed, this is already covered by the code immediately following.

Just removing these should fix the broken tests.

@schlessera
Copy link
Copy Markdown
Member

@svenkaptein Thanks for the pull request, and sorry for dropping the ball on this.

The tests are currently broken, but a simple removal of superfluous code as hinted at in the review should fix them. As soon as they pass, this is good to be merged.

@schlessera
Copy link
Copy Markdown
Member

I'm making the required change myself to add this to the release I'm tagging...

@schlessera schlessera added this to the 1.2.2 milestone Jul 31, 2018
@schlessera schlessera merged commit 18f1036 into wp-cli:master Jul 31, 2018
@schlessera schlessera changed the title Add --all flag to plugin delete Add --all flag to plugin delete Jul 31, 2018
@schlessera
Copy link
Copy Markdown
Member

Thanks for the pull-request, @svenkaptein !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:plugin-delete Related to 'plugin delete' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants