MCPcopy Create free account
hub / github.com/HashLoad/boss / UninstallModules

Function UninstallModules

core/installer.go:30–52  ·  view source on GitHub ↗
(args []string, noSave bool)

Source from the content-addressed store, hash-verified

28}
29
30func UninstallModules(args []string, noSave bool) {
31 pkg, e := models.LoadPackage(false)
32
33 if e != nil {
34 msg.Err(e.Error())
35 }
36
37 if pkg == nil {
38 return
39 }
40
41 for e := range args {
42 dependencyRepository := installer.ParseDependency(args[e])
43 pkg.UninstallDependency(dependencyRepository)
44 }
45
46 pkg.Save()
47
48 // TODO noSave
49 // TODO implement remove without reinstall process
50
51 InstallModules([]string{}, false, false)
52}

Callers 1

uninstall.goFile · 0.92

Calls 6

LoadPackageFunction · 0.92
ErrFunction · 0.92
ParseDependencyFunction · 0.92
InstallModulesFunction · 0.85
UninstallDependencyMethod · 0.80
SaveMethod · 0.45

Tested by

no test coverage detected