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

Method Save

models/package.go:27–32  ·  view source on GitHub ↗

Save save changes of boss.json file

()

Source from the content-addressed store, hash-verified

25
26// Save save changes of boss.json file
27func (p *Package) Save() []byte {
28 marshal, _ := parser.JSONMarshal(p, true)
29 _ = WriteFile(p.fileName, marshal, 0664)
30 p.Lock.Save()
31 return marshal
32}
33
34func (p *Package) AddDependency(dep string, ver string) {
35 if p.Dependencies == nil {

Callers 4

UninstallModulesFunction · 0.45
buildOrderedPackagesFunction · 0.45
DoInstallFunction · 0.45
doInitializationFunction · 0.45

Calls 1

JSONMarshalFunction · 0.92

Tested by

no test coverage detected