resolveConfigPath returns the config path to use. If configPath is non-empty, it is returned as-is. Otherwise, the OS-specific default path is returned.
(configPath string)
| 26 | // If configPath is non-empty, it is returned as-is. |
| 27 | // Otherwise, the OS-specific default path is returned. |
| 28 | func resolveConfigPath(configPath string) (string, error) { |
| 29 | if configPath != "" { |
| 30 | return configPath, nil |
| 31 | } |
| 32 | return defaultConfigPath() |
| 33 | } |
| 34 | |
| 35 | // fileConfig represents the YAML configuration file structure. |
| 36 | // Migration-related flags are intentionally excluded as they |
no test coverage detected