DefaultPath returns the canonical config.yaml location under CAM's config directory.
()
| 48 | // DefaultPath returns the canonical config.yaml location under CAM's config |
| 49 | // directory. |
| 50 | func DefaultPath() string { |
| 51 | return filepath.Join(pathutil.ConfigDir(), "config.yaml") |
| 52 | } |
| 53 | |
| 54 | // Load returns the parsed config.yaml. When path is empty the canonical |
| 55 | // location is consulted; when that file is missing the bundled defaults are |