Prepare CLI loading for ConfigKit configuration

This commit is contained in:
2026-09-13 16:50:40 +00:00
parent 320de32a61
commit bb922f19d9
4 changed files with 97 additions and 0 deletions

View File

@@ -53,6 +53,12 @@ func loadConfig(path string, options LoadOptions) (*LoadedConfig, error) {
return newLoadedConfig(result)
}
// Load reads a version 5 configuration file into runtime configuration and a
// private inspection snapshot.
func Load(path string, options LoadOptions) (*LoadedConfig, error) {
return loadConfig(path, options)
}
func loadConfigSource(source configkit.Source, options LoadOptions) (*LoadedConfig, error) {
result, err := loadDocumentSource(source, options)
if err != nil {