Add config_value adaptors for complex user types
The recently added config_value_object_access makes it simple to add custom types where each field maps naturally to a key/value entry. However, not each type fits that model. For example, a custom duration type might internally store only a single integer but use two key/value entries in the config: a count and the resolution. The new config_value_adaptor API enables such mappings by converting between the user-defined type and a tuple that models the representation in configuration files or on the CLI.
Showing
Please register or sign in to comment