MCPcopy Index your code
hub / github.com/WendellCraft/ModpackDebuggerKit / AddDependency

Method AddDependency

app.go:619–627  ·  view source on GitHub ↗
(mainMod string, deps []string)

Source from the content-addressed store, hash-verified

617}
618
619func (a *App) AddDependency(mainMod string, deps []string) {
620 a.mu.Lock()
621 depsCopy := append([]string{}, deps...)
622 a.ProjectData.Dependencies[mainMod] = depsCopy
623 a.ProjectModified = true
624 a.mu.Unlock()
625 a.emitLog(fmt.Sprintf("Dependency added: %s -> %s", mainMod, joinStrings(deps, ", ")), LogSuccess)
626 a.updateHangingLibraries()
627}
628
629func (a *App) AddDependencyMulti(mainMods []string, deps []string) {
630 a.mu.Lock()

Callers

nothing calls this directly

Calls 3

emitLogMethod · 0.95
joinStringsFunction · 0.85

Tested by

no test coverage detected