()
| 121 | } |
| 122 | |
| 123 | func activeConfigFileForState() string { |
| 124 | if cfgFile != "" { |
| 125 | return resolveConfigFilePath(cfgFile) |
| 126 | } |
| 127 | return resolveConfigFilePath(viper.ConfigFileUsed()) |
| 128 | } |
| 129 | |
| 130 | func resolveConfigFilePath(configPath string) string { |
| 131 | configPath = strings.TrimSpace(configPath) |
no test coverage detected