MCPcopy Create free account
hub / github.com/cozystack/talm / screenSetValuesForCoercion

Function screenSetValuesForCoercion

pkg/engine/setvalue_warn.go:109–117  ·  view source on GitHub ↗

screenSetValuesForCoercion walks every comma-separated pair in every --set entry and emits a warning per footgun-shape match. The screen is non-fatal: parsing proceeds as before, the warning is the only behavioural change.

(values []string)

Source from the content-addressed store, hash-verified

107// The screen is non-fatal: parsing proceeds as before, the warning
108// is the only behavioural change.
109func screenSetValuesForCoercion(values []string) {
110 for _, value := range values {
111 for _, pair := range splitChainedSetValue(value) {
112 if looksLikeAccidentalSetCoercion(pair) {
113 emitSetValueCoercionWarning(pair)
114 }
115 }
116 }
117}

Callers 1

loadValuesFunction · 0.85

Calls 3

splitChainedSetValueFunction · 0.85

Tested by

no test coverage detected