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

Function InstallModules

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

Source from the content-addressed store, hash-verified

10)
11
12func InstallModules(args []string, lockedVersion bool, noSave bool) {
13 _ = lockedVersion
14 pkg, e := models.LoadPackage(env.Global)
15 if e != nil {
16 if os.IsNotExist(e) {
17 msg.Die("boss.json not exists in " + env.GetCurrentDir())
18 } else {
19 msg.Die("Fail on open dependencies file: %s", e)
20 }
21 }
22
23 if env.Global {
24 installer.GlobalInstall(args, pkg, lockedVersion, noSave)
25 } else {
26 installer.LocalInstall(args, pkg, lockedVersion, noSave)
27 }
28}
29
30func UninstallModules(args []string, noSave bool) {
31 pkg, e := models.LoadPackage(false)

Callers 3

update.goFile · 0.92
install.goFile · 0.92
UninstallModulesFunction · 0.85

Calls 5

LoadPackageFunction · 0.92
DieFunction · 0.92
GetCurrentDirFunction · 0.92
GlobalInstallFunction · 0.92
LocalInstallFunction · 0.92

Tested by

no test coverage detected