MCPcopy Create free account
hub / github.com/Vanilla-OS/apx / LoadStack

Function LoadStack

core/stack.go:42–50  ·  view source on GitHub ↗

LoadStack loads a stack from the specified path.

(name string)

Source from the content-addressed store, hash-verified

40
41// LoadStack loads a stack from the specified path.
42func LoadStack(name string) (*Stack, error) {
43 usrStackFile := SelectYamlFile(apx.Cnf.UserStacksPath, name)
44 stack, err := LoadStackFromPath(usrStackFile)
45 if err != nil {
46 stackFile := SelectYamlFile(apx.Cnf.StacksPath, name)
47 stack, err = LoadStackFromPath(stackFile)
48 }
49 return stack, err
50}
51
52// LoadStackFromPath loads a stack from the specified path.
53func LoadStackFromPath(path string) (*Stack, error) {

Callers 10

RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
LoadSubSystemFunction · 0.85
ListSubSystemsFunction · 0.85
ListSubsystemForStackFunction · 0.85
listStacksFromPathFunction · 0.85
StackExistsFunction · 0.85

Calls 2

SelectYamlFileFunction · 0.85
LoadStackFromPathFunction · 0.85

Tested by

no test coverage detected