Skip to content

Add optional --exclude=<name> argument for multiple plugin commands#321

Merged
danielbachhuber merged 6 commits intomasterfrom
add/plugin-exclude-argument
Jul 11, 2022
Merged

Add optional --exclude=<name> argument for multiple plugin commands#321
danielbachhuber merged 6 commits intomasterfrom
add/plugin-exclude-argument

Conversation

@danielbachhuber
Copy link
Member

Previously #149, #195


Added optional argument --exclude for plugin deactivate --all where plugin slugs can be specified as comma-separated.

Objective: Allow users to exclude specific plugins from deactivation.
E.g. wp plugin deactivate --all --exclude=jetpack,akismet

Also, the --exclude parameter will work only if --all is specified. I've added 2 additional tests to check this feature under features/plugin-deactivate.feature

-- @achyuthajoy

@danielbachhuber danielbachhuber added command:plugin-install Related to 'plugin install' command command:plugin-delete Related to 'plugin delete' command command:plugin-activate Related to 'plugin activate' command command:plugin-deactivate Related to 'plugin deactivate' command command:plugin-uninstall Related to 'plugin uninstall' command labels Jul 7, 2022
@danielbachhuber danielbachhuber added this to the 2.1.5 milestone Jul 7, 2022
@danielbachhuber danielbachhuber requested a review from a team as a code owner July 7, 2022 16:09
@danielbachhuber danielbachhuber self-assigned this Jul 7, 2022
@danielbachhuber danielbachhuber requested a review from a team July 8, 2022 12:37
@wojsmol
Copy link
Contributor

wojsmol commented Jul 8, 2022

@danielbachhuber You can skip changes in README.md - it will be auto updated after this PR marge.

@danielbachhuber
Copy link
Member Author

You can skip changes in README.md - it will be auto updated after this PR marge.

@wojsmol Awesome, thanks!

@danielbachhuber danielbachhuber merged commit 1be4886 into master Jul 11, 2022
@delete-merged-branch delete-merged-branch bot deleted the add/plugin-exclude-argument branch July 11, 2022 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:plugin-activate Related to 'plugin activate' command command:plugin-deactivate Related to 'plugin deactivate' command command:plugin-delete Related to 'plugin delete' command command:plugin-install Related to 'plugin install' command command:plugin-uninstall Related to 'plugin uninstall' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants