You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a CLI user, I want the command to abort execution when none of the plugin slugs passed to the --onlyPlugins filtering option are valid so that I can correct my input and avoid unintended execution of all plugins.
For the --skipPlugins option, I want the command to continue execution, skipping the valid plugins specified and ignoring invalid plugins with a warning so that minor typos in skipPlugins do not prevent me from completing my task.
Acceptance criteria
Abort on invalid onlyPlugins
When none of the provided slugs are valid, the command aborts execution before running any plugins.
An error message is displayed.
Proceed with valid onlyPlugins
onlyPlugins can handle multiple slugs, so when at least one of the provided slugs is valid, the command should proceed.
Invalid plugin slugs are ignored.
A warning message is displayed.
Continue execution with invalid skipPlugins
The command proceeds to execute, skipping the valid plugins specified and ignoring invalid plugin slugs.
A warning message is displayed.
Handle combined onlyPlugins and skipPlugins input
When none of the onlyPlugins are valid, the command aborts execution with an error message.
When the skipPlugins filter is applied to the result of onlyPlugins filtering, and there are no plugins to run, the command aborts execution with a warning.
All error and warning messages should specify which plugin slugs are invalid and guide the user to correct their input.
Implementation details
validatePluginFilterOption can log the error and warning messages.
The text was updated successfully, but these errors were encountered:
User story
As a CLI user, I want the command to abort execution when none of the plugin slugs passed to the
--onlyPlugins
filtering option are valid so that I can correct my input and avoid unintended execution of all plugins.For the
--skipPlugins
option, I want the command to continue execution, skipping the valid plugins specified and ignoring invalid plugins with a warning so that minor typos inskipPlugins
do not prevent me from completing my task.Acceptance criteria
onlyPlugins
onlyPlugins
onlyPlugins
can handle multiple slugs, so when at least one of the provided slugs is valid, the command should proceed.skipPlugins
onlyPlugins
andskipPlugins
inputonlyPlugins
are valid, the command aborts execution with an error message.skipPlugins
filter is applied to the result ofonlyPlugins
filtering, and there are no plugins to run, the command aborts execution with a warning.Implementation details
validatePluginFilterOption
can log the error and warning messages.The text was updated successfully, but these errors were encountered: