MCPcopy Create free account
hub / github.com/diillson/chatcli / listRef

Method listRef

cli/workspace/memory/profile.go:253–267  ·  view source on GitHub ↗

listRef resolves a canonical list-field name to its slice.

(field string)

Source from the content-addressed store, hash-verified

251
252// listRef resolves a canonical list-field name to its slice.
253func (ps *UserProfileStore) listRef(field string) *[]string {
254 switch field {
255 case "certifications":
256 return &ps.profile.Certifications
257 case "skills":
258 return &ps.profile.Skills
259 case "goals":
260 return &ps.profile.Goals
261 case "interests":
262 return &ps.profile.Interests
263 case "directives":
264 return &ps.profile.Directives
265 }
266 return nil
267}
268
269// applyListOp executes one list operation; callers must hold the write lock.
270func (ps *UserProfileStore) applyListOp(field string, op listOp, value string) bool {

Callers 1

applyListOpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected