MCPcopy Index your code
hub / github.com/cheat/cheat / firstRunConfpaths

Function firstRunConfpaths

test/integration/first_run_integration_test.go:225–236  ·  view source on GitHub ↗

firstRunConfpaths returns the config file paths that cheat would check for the given home directory, matching the logic in config.Paths().

(home string)

Source from the content-addressed store, hash-verified

223// firstRunConfpaths returns the config file paths that cheat would check
224// for the given home directory, matching the logic in config.Paths().
225func 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

Callers 1

TestFirstRunIntegrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected