Establish configuration hierarchy. CLI args override `config.yaml`
Open
configuration
enhancement
sql server
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 873
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 108
Description
generating a new server config has a hard switch between args or a static file:
```go
func GetServerConfig(dEnv *env.DoltEnv, apr *argparser.ArgParseResults) (ServerConfig, error) {
if cfgFile, ok := apr.GetValue(configFileFlag); ok {
return getYAMLServerConfig(dEnv.FS, cfgFile)
}
return getCommandLineServerConfig(dEnv, apr)
}
```
If the config file is passed and cli args aren't empty, apply the overrides to the server config.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.