firstRunConfpaths returns the config file paths that cheat would check for the given home directory, matching the logic in config.Paths().
(home string)
| 223 | // firstRunConfpaths returns the config file paths that cheat would check |
| 224 | // for the given home directory, matching the logic in config.Paths(). |
| 225 | func firstRunConfpaths(home string) []string { |
| 226 | switch runtime.GOOS { |
| 227 | case "windows": |
| 228 | return []string{ |
| 229 | filepath.Join(home, "AppData", "Roaming", "cheat", "conf.yml"), |
| 230 | } |
| 231 | default: |
| 232 | return []string{ |
| 233 | filepath.Join(home, ".config", "cheat", "conf.yml"), |
| 234 | } |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | // assertNoPlaceholders verifies that no template placeholder strings survived |
| 239 | // in the config output. This is the regression check for #721 (literal |
no outgoing calls
no test coverage detected