FeatureFlagsFileLocation returns the path to the feature.yaml file. The file is in the same directory as config.yaml, which is provided as the fist parameter. This can be different than ConfigPaths.ConfigDir because we have not read config.yaml yet so we don't know the value of ConfigDir.
(configPath string)
| 20 | // as the fist parameter. This can be different than ConfigPaths.ConfigDir |
| 21 | // because we have not read config.yaml yet so we don't know the value of ConfigDir. |
| 22 | func GetFeatureFilePath(configPath string) string { |
| 23 | dir := filepath.Dir(configPath) |
| 24 | return filepath.Join(dir, "feature.yaml") |
| 25 | } |
| 26 | |
| 27 | // LoadFeatureFlags parses feature.yaml to enable feature flags. |
| 28 | func LoadFeatureFlagsFile(configPath string, logger *log.Logger) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…