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
This call combined to this console command makes it possible to call any public method of a TogglingStrategy, including those that are not relevant to the command, for example:
I understand that this console command is here to provide some basic support, but maybe there should be a separate, dedicated command for each strategy, with each command featuring proper validation? Something like:
I intended the ConfigureFeatureCommand to be the single CLI entrypoint to configure any feature, because I wanted adding new strategies to be as easy as possible.
But, since the class is generic, implementing strategy-specific behaviours like parameter validation is more complex.
I think what you are proposing is a good idea and would not make adding new strategies that more difficult.
This call combined to this console command makes it possible to call any public method of a
TogglingStrategy
, including those that are not relevant to the command, for example:Not sure if this is an issue, but I guess it was not intended.
Also, the parameters are not validated, and such the following call (with a parameter missing) will throw an exception:
I understand that this console command is here to provide some basic support, but maybe there should be a separate, dedicated command for each strategy, with each command featuring proper validation? Something like:
What do you think?
The text was updated successfully, but these errors were encountered: