MCPcopy Create free account
hub / github.com/wailsapp/wails / updateModuleNameToProjectName

Function updateModuleNameToProjectName

v2/cmd/wails/init.go:286–295  ·  view source on GitHub ↗
(options *templates.Options, quiet bool)

Source from the content-addressed store, hash-verified

284}
285
286func updateModuleNameToProjectName(options *templates.Options, quiet bool) error {
287 cmd := exec.Command("go", "mod", "edit", "-module", options.ProjectName)
288 cmd.Dir = options.TargetDir
289 cmd.Stderr = os.Stderr
290 if !quiet {
291 cmd.Stdout = os.Stdout
292 }
293
294 return cmd.Run()
295}

Callers 1

initProjectFunction · 0.85

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…