Skip to content

Added optional argument --exclude for plugin deactivate --all#149

Closed
achyuthajoy wants to merge 1 commit intowp-cli:masterfrom
achyuthajoy:plugin_deactivate_exclude
Closed

Added optional argument --exclude for plugin deactivate --all#149
achyuthajoy wants to merge 1 commit intowp-cli:masterfrom
achyuthajoy:plugin_deactivate_exclude

Conversation

@achyuthajoy
Copy link
Contributor

@achyuthajoy achyuthajoy commented Mar 1, 2019

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

This is my first contribution to WordPress community. Suggestions and modifications to improve this are appreciated. If this can be achieved with less changes, I'm happy to learn about it as well.

@schlessera schlessera added the command:plugin-deactivate Related to 'plugin deactivate' command label Mar 4, 2019
@achyuthajoy
Copy link
Contributor Author

Moved to PR #195. Rebase to origin/master

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

Labels

command:plugin-deactivate Related to 'plugin deactivate' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants