climate_ref.cli._config_access
#
Helpers for reading and updating dotted configuration keys.
ConfigKeyError
#
Bases: KeyError
Raised when a dotted configuration key cannot be resolved.
Source code in packages/climate-ref/src/climate_ref/cli/_config_access.py
available_keys(config, prefix='')
#
Return all dotted scalar configuration keys.
Source code in packages/climate-ref/src/climate_ref/cli/_config_access.py
coerce_value(field, raw)
#
Coerce a CLI string to the type required by an attrs field.
Source code in packages/climate-ref/src/climate_ref/cli/_config_access.py
default_value(parent, field)
#
Return the attrs default for a field without reading the current value.
Source code in packages/climate-ref/src/climate_ref/cli/_config_access.py
env_var_for(parent, field)
#
Return the environment variable that overrides a field, if any.
Source code in packages/climate-ref/src/climate_ref/cli/_config_access.py
is_structured(value, field)
#
Return whether a field is too structured for scalar CLI set/unset.
Source code in packages/climate-ref/src/climate_ref/cli/_config_access.py
resolve_key(config, dotted)
#
Resolve a dotted key to its parent object, attrs field and current value.