(configPath string)
| 11 | ) |
| 12 | |
| 13 | func checkConfigPath(configPath string) error { |
| 14 | targetPath := path.Join(configPath, configFilename) |
| 15 | if _, err := os.Stat(targetPath); err == nil { |
| 16 | return fmt.Errorf("config in %s already exists", targetPath) |
| 17 | } |
| 18 | return nil |
| 19 | } |
| 20 | |
| 21 | func configExists(configPath string) bool { |
| 22 | targetPath := path.Join(configPath, configFilename) |
no test coverage detected