LoadProjectConfig loads a main project config and merges optional overrides into the target struct.
(mainPath string, overridePaths []string, target any)
| 42 | |
| 43 | // LoadProjectConfig loads a main project config and merges optional overrides into the target struct. |
| 44 | func LoadProjectConfig(mainPath string, overridePaths []string, target any) error { |
| 45 | factory := getDefaultFactory() |
| 46 | return factory.LoadProjectConfig(mainPath, overridePaths, target) |
| 47 | } |
| 48 | |
| 49 | // LoadProjectConfigFromContents loads a main project config and merges optional overrides from pre-read bytes. |
| 50 | func LoadProjectConfigFromContents(mainContent []byte, overrides []OverrideConfig, target any) error { |