MCPcopy Index your code
hub / github.com/jetify-com/devbox / GetNames

Method GetNames

internal/devpkg/outputs.go:14–27  ·  view source on GitHub ↗
(pkg *Package)

Source from the content-addressed store, hash-verified

12}
13
14func (out *outputs) GetNames(pkg *Package) ([]string, error) {
15 if len(out.selectedNames) > 0 {
16 return out.selectedNames, nil
17 }
18
19 // else, get the default outputs from the lockfile
20 // if we haven't already
21 if out.defaultNames == nil {
22 if err := out.initDefaultNames(pkg); err != nil {
23 return []string{}, err
24 }
25 }
26 return out.defaultNames, nil
27}
28
29// initDefaultNames initializes the defaultNames field of the Outputs object.
30// We run this lazily (rather than eagerly in initOutputs) because it depends on the Package,

Callers 1

GetOutputNamesMethod · 0.80

Calls 1

initDefaultNamesMethod · 0.95

Tested by

no test coverage detected