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

Method DefaultOutputs

internal/lock/package.go:88–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func (i *SystemInfo) DefaultOutputs() []Output {
89 if i == nil {
90 return nil
91 }
92
93 if len(i.Outputs) == 0 {
94 return nil
95 }
96
97 res := []Output{}
98 for _, output := range i.Outputs {
99 if output.Default {
100 res = append(res, output)
101 }
102 }
103 if len(res) > 0 {
104 return res
105 }
106
107 // If no default outputs, return the first one
108 return []Output{i.Outputs[0]}
109}
110
111func (i *SystemInfo) Equals(other *SystemInfo) bool {
112 if i == nil || other == nil {

Callers 3

InputAddressedPathsMethod · 0.80
initDefaultNamesMethod · 0.80
outputsForOutputNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected