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)
| 687 | // printSkillInfoHeader prints the always-present Name line, preferring the |
| 688 | // remote-meta name when both sides know it. |
| 689 | func (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. |
no test coverage detected