databricks-cli/libs/config
Pieter Noordhuis f5f57b6bf9
Populate struct field with `config.Value` instance if possible (#1010)
## Changes

If a struct has a field of type `config.Value`, then we set it to the
source value while converting a `config.Value` instance to a struct as
part of a call to `convert.ToTyped`.

This is convenient when dealing with deeply nested structs where
functions on inner structs need access to the metadata provided by their
corresponding `config.Value` (e.g. where they were defined).

## Tests

Added unit tests pass.
2023-11-27 10:06:29 +00:00
..
convert Populate struct field with `config.Value` instance if possible (#1010) 2023-11-27 10:06:29 +00:00
merge Function to merge two instances of `config.Value` (#938) 2023-11-03 19:15:47 +00:00
yamlloader Loading an empty file yields a nil (#906) 2023-10-24 11:24:43 +00:00
kind.go Library to convert config.Value to Go struct (#904) 2023-10-24 11:12:36 +00:00
location.go New YAML loader to support configuration location (#828) 2023-10-20 12:56:59 +00:00
location_test.go New YAML loader to support configuration location (#828) 2023-10-20 12:56:59 +00:00
value.go Add function to check if `config.Value` is valid (#1009) 2023-11-24 13:21:47 +00:00
value_test.go Add function to check if `config.Value` is valid (#1009) 2023-11-24 13:21:47 +00:00