MCPcopy Create free account
hub / github.com/commitdev/zero / GetFirstConditionElseValue

Function GetFirstConditionElseValue

internal/config/moduleconfig/module_config.go:270–277  ·  view source on GitHub ↗

GetFirstConditionElseValue returns the default value of the first condition that has a default

(parameter Parameter)

Source from the content-addressed store, hash-verified

268
269// GetFirstConditionElseValue returns the default value of the first condition that has a default
270func GetFirstConditionElseValue(parameter Parameter) string {
271 for _, condition := range parameter.Conditions {
272 if condition.ElseValue != "" {
273 return condition.ElseValue
274 }
275 }
276 return ""
277}
278
279// UnmarshalYAML Parses a version constraint string into go-version constraint during yaml parsing
280func (semVer *VersionConstraints) UnmarshalYAML(unmarshal func(interface{}) error) error {

Callers 1

RunPromptMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected