MCPcopy
hub / github.com/cloudflare/cloudflared / DefaultConfigPath

Function DefaultConfigPath

config/configuration.go:70–76  ·  view source on GitHub ↗

DefaultConfigPath returns the default location of a config file

()

Source from the content-addressed store, hash-verified

68
69// DefaultConfigPath returns the default location of a config file
70func DefaultConfigPath() string {
71 dir := DefaultConfigDirectory()
72 if dir == "" {
73 return DefaultConfigFiles[0]
74 }
75 return filepath.Join(dir, DefaultConfigFiles[0])
76}
77
78// DefaultConfigSearchDirectories returns the default folder locations of the config
79func DefaultConfigSearchDirectories() []string {

Callers 1

FindOrCreateConfigPathFunction · 0.85

Calls 1

DefaultConfigDirectoryFunction · 0.85

Tested by

no test coverage detected