Use separate config properties for adapter enable/disable lists#256
Use separate config properties for adapter enable/disable lists#256lafrenierejm wants to merge 3 commits intophiresky:masterfrom
Conversation
|
This builds on #250. I would recommend reviewing that PR before this one. |
|
This could be considered a breaking change wrt to people's config files, which we should probably care about now. I also think it's a good goal to keep the config and CLI as aligned as possible, so I'm not sure if this is the best approach |
|
Maybe a leaner solution would be to just (significantly) improve the docs for this parameter |
|
To expand on the config breakage: The generated json-schema is versioned but this change means we would have to actually implement a method to update it in some way or have read-compatibility with older versions. I envisioned something like the |
As a counterargument: If breaking changes are going to be made, doing so now (before stable 1.0.0 is released) is the best time to do it. |
That's fair. I find this PR's approach of separate enable/disable properties to be much more intuitive than the current syntax, so my preference would be:
That said, I recognize that this is largely a matter of personal preference. In the end the call is yours to make. |
I do wonder if there's an existing Crate that provides some of that functionality. But I agree that everything related to the config versioning is low priority at least until 1.0.0 is released. |
@phiresky What are your thoughts on this approach? |
|
It sounds pretty reasonable.. though with your new approach you have no option to fully override the adapters list. As in, |
The
adaptersproperty in the configuration file is replaced by two new properties,adapters_enableandadapters_disable. The CLI is unchanged; the new properties are only supported in the config file and can be overridden by the--adaptersCLI option.This is intended to resolve #183 by making it clearer how to enable or disable adapters via the config file.