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

Method printSkillInfoHeader

cli/skill_handler.go:689–696  ·  view source on GitHub ↗

printSkillInfoHeader prints the always-present Name line, preferring the remote-meta name when both sides know it.

(name string, local *registry.InstalledSkillInfo, remote *registry.SkillMeta)

Source from the content-addressed store, hash-verified

687// printSkillInfoHeader prints the always-present Name line, preferring the
688// remote-meta name when both sides know it.
689func (sh *SkillHandler) printSkillInfoHeader(name string, local *registry.InstalledSkillInfo, remote *registry.SkillMeta) {
690 displayName := pickFirstNonEmpty(
691 remoteName(remote),
692 localName(local),
693 name,
694 )
695 fmt.Printf(" %s %s\n", colorize(i18n.T("skill.info.name")+":", ColorCyan), displayName)
696}
697
698// printSkillInfoDetails prints the description/version/author/source/tags/
699// downloads rows. Each row is its own helper so the dispatcher stays linear.

Callers 1

InfoMethod · 0.95

Calls 5

TFunction · 0.92
pickFirstNonEmptyFunction · 0.85
remoteNameFunction · 0.85
localNameFunction · 0.85
colorizeFunction · 0.85

Tested by

no test coverage detected