Consider changing config code to use figment #3331
Labels
Priority: Low
Prioritized below most other issues
Status: Help Wanted
Well suited for community contributions
Type: Maintenance
Refactoring, cleanup, documenation, or process improvements
Shadow's configuration code currently uses clap to read cli options and serde_yaml to read yaml files. Then we do some merging to combine the two. But this makes the configuration code a bit awkward.
The figment library claims to handle this, so it might be nice to try it to simplify our configuration code. It's not immediately clear if it would support everything required by Shadow (for example including the default values in the clap help text like we do with
generate_help_strs
).The text was updated successfully, but these errors were encountered: