MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / parseKeyValue

Function parseKeyValue

app/cli/cmd/policy_develop_eval.go:89–97  ·  view source on GitHub ↗
(raw []string)

Source from the content-addressed store, hash-verified

87}
88
89func parseKeyValue(raw []string) map[string]string {
90 parsed := make(map[string]string)
91 for _, a := range raw {
92 if key, val, ok := strings.Cut(a, "="); ok {
93 parsed[key] = val
94 }
95 }
96 return parsed
97}

Callers 1

newPolicyDevelopEvalCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected