MCPcopy Index your code
hub / github.com/commitdev/zero / KeyMatchCondition

Function KeyMatchCondition

internal/init/prompts.go:51–55  ·  view source on GitHub ↗

KeyMatchCondition is a condition that checks if the key matches the value

(key string, value string)

Source from the content-addressed store, hash-verified

49
50// KeyMatchCondition is a condition that checks if the key matches the value
51func KeyMatchCondition(key string, value string) CustomConditionSignature {
52 return func(param map[string]string) bool {
53 return param[key] == value
54 }
55}
56
57// NoValidation is a no-op validation function
58func NoValidation(string) error {

Callers 1

conditionHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected