Exists checks if the config file exists.
(baseDir string)
| 45 | |
| 46 | // Exists checks if the config file exists. |
| 47 | func Exists(baseDir string) bool { |
| 48 | _, err := os.Stat(configPath(baseDir)) |
| 49 | return err == nil |
| 50 | } |
| 51 | |
| 52 | // Load reads the config from .chief/config.yaml. |
| 53 | // Returns Default() when the file doesn't exist (no error). |