(configType string)
| 260 | } |
| 261 | fmt.Println(style.Success("Created .lunacfg in current directory")) |
| 262 | } else { |
| 263 | fmt.Println(style.Info(".lunacfg already exists in current directory")) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | func createGlobalConfig() { |
| 268 | path, _ := getGlobalConfigPath() |
| 269 | if _, err := os.Stat(path); os.IsNotExist(err) { |
| 270 | cfg := GetDefaultConfig() |
| 271 | if err := SaveGlobalConfig(cfg); err != nil { |
| 272 | fmt.Println(style.Err(fmt.Sprintf("Error creating .lunarc: %v", err))) |
| 273 | return |
| 274 | } |
| 275 | fmt.Println(style.Success("Created .lunarc in home directory")) |
no outgoing calls
no test coverage detected