DefaultConfigPath returns the default location of a config file
()
| 68 | |
| 69 | // DefaultConfigPath returns the default location of a config file |
| 70 | func 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 |
| 79 | func DefaultConfigSearchDirectories() []string { |
no test coverage detected