databricks-cli/libs/config
Pieter Noordhuis a1297d71fd
Functionality to walk a `config.Value` tree (#1081)
## Changes

This change adds:
* A `config.Walk` function to walk a configuration tree
* A `config.Path` type to represent a value's path inside a tree
* Functions to create a `config.Path` from a string, or convert one to a
string

## Tests

Additional unit tests with full coverage.
2023-12-22 10:38:09 +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
path.go Functionality to walk a `config.Value` tree (#1081) 2023-12-22 10:38:09 +00:00
path_string.go Functionality to walk a `config.Value` tree (#1081) 2023-12-22 10:38:09 +00:00
path_string_test.go Functionality to walk a `config.Value` tree (#1081) 2023-12-22 10:38:09 +00:00
path_test.go Functionality to walk a `config.Value` tree (#1081) 2023-12-22 10:38:09 +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
walk.go Functionality to walk a `config.Value` tree (#1081) 2023-12-22 10:38:09 +00:00
walk_test.go Functionality to walk a `config.Value` tree (#1081) 2023-12-22 10:38:09 +00:00