(rootDir string)
| 63 | } |
| 64 | |
| 65 | func writeDefaultConfigFileIfNone(rootDir string) error { |
| 66 | configFilePath := filepath.Join(rootDir, defaultConfigFilePath) |
| 67 | if !tmos.FileExists(configFilePath) { |
| 68 | return WriteConfigFile(rootDir, DefaultConfig()) |
| 69 | } |
| 70 | return nil |
| 71 | } |
| 72 | |
| 73 | // Note: any changes to the comments/variables/mapstructure |
| 74 | // must be reflected in the appropriate struct in config/config.go |
no test coverage detected
searching dependent graphs…