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

Method AddDependencyMulti

app.go:629–639  ·  view source on GitHub ↗
(mainMods []string, deps []string)

Source from the content-addressed store, hash-verified

627}
628
629func (a *App) AddDependencyMulti(mainMods []string, deps []string) {
630 a.mu.Lock()
631 for _, main := range mainMods {
632 depsCopy := append([]string{}, deps...)
633 a.ProjectData.Dependencies[main] = depsCopy
634 }
635 a.ProjectModified = true
636 a.mu.Unlock()
637 a.emitLog(fmt.Sprintf("Dependencies added for %d mods", len(mainMods)), LogSuccess)
638 a.updateHangingLibraries()
639}
640
641func (a *App) RemoveDependency(mod string) {
642 a.mu.Lock()

Callers

nothing calls this directly

Calls 2

emitLogMethod · 0.95

Tested by

no test coverage detected