MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / splitKeyValue

Function splitKeyValue

internal/cli/config_cmd.go:267–281  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

265}
266
267func splitKeyValue(args []string) (string, string, bool) {
268 switch len(args) {
269 case 1:
270 raw := args[0]
271 idx := strings.IndexByte(raw, '=')
272 if idx <= 0 {
273 return "", "", false
274 }
275 return strings.TrimSpace(raw[:idx]), strings.TrimSpace(raw[idx+1:]), true
276 case 2:
277 return args[0], args[1], true
278 default:
279 return "", "", false
280 }
281}
282
283// --- legacy CAM-config helpers (operate on the file at --config) ---------
284

Callers 1

configSetCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected