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

Method IsPinned

cli/skill_handler.go:1294–1299  ·  view source on GitHub ↗

IsPinned reports whether the named skill is currently pinned. Used by skill list to render the pin marker.

(name string)

Source from the content-addressed store, hash-verified

1292// IsPinned reports whether the named skill is currently pinned. Used by
1293// /skill list to render the pin marker.
1294func (sh *SkillHandler) IsPinned(name string) bool {
1295 sh.pinnedSkillsMu.RLock()
1296 defer sh.pinnedSkillsMu.RUnlock()
1297 _, ok := sh.pinnedSkillNames[name]
1298 return ok
1299}
1300
1301// PinnedNames returns a snapshot of currently pinned skill names sorted
1302// alphabetically. Exposed for the completer.

Calls

no outgoing calls