MCPcopy Create free account
hub / github.com/LunaSource/Luna / createProjectConfig

Function createProjectConfig

config/config.go:234–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232}
233
234func createProjectConfig() {
235 path := filepath.Join(".", PROJECT_CONFIG_FILE)
236 if _, err := os.Stat(path); os.IsNotExist(err) {
237 cfg := GetDefaultConfig()
238 if err := SaveProjectConfig(cfg); err != nil {
239 fmt.Printf("Error creating .lunacfg: %v\n", err)
240 return
241 }
242 fmt.Println("🗸 Created .lunacfg in current directory")
243 } else {
244 fmt.Println("🛈 .lunacfg already exists in current directory")
245 }
246}
247
248func createGlobalConfig() {
249 path, _ := getGlobalConfigPath()

Callers 1

createSelectedConfigsFunction · 0.85

Calls 2

GetDefaultConfigFunction · 0.85
SaveProjectConfigFunction · 0.85

Tested by

no test coverage detected