MCPcopy Create free account
hub / github.com/compozy/agh / skillListBundle

Function skillListBundle

internal/cli/skill_output.go:75–100  ·  view source on GitHub ↗
(items []skillListItem)

Source from the content-addressed store, hash-verified

73}
74
75func skillListBundle(items []skillListItem) outputBundle {
76 return listBundle(
77 items,
78 items,
79 "Skills",
80 []string{automationNameValue, skillOutputDescriptionValue, authoredContextSourceValue, skillOutputEnabledValue},
81 "skills",
82 []string{automationNameKey, skillOutputDescriptionKey, automationSourceKey, skillOutputEnabledKey},
83 func(item skillListItem) []string {
84 return []string{
85 stringOrDash(item.Name),
86 stringOrDash(item.Description),
87 stringOrDash(item.Source),
88 strconv.FormatBool(item.Enabled),
89 }
90 },
91 func(item skillListItem) []string {
92 return []string{
93 item.Name,
94 item.Description,
95 item.Source,
96 strconv.FormatBool(item.Enabled),
97 }
98 },
99 )
100}
101
102func skillViewBundle(item skillViewItem, rendered string) outputBundle {
103 return outputBundle{

Callers 2

newSkillListCommandFunction · 0.85

Calls 2

listBundleFunction · 0.85
stringOrDashFunction · 0.85

Tested by 1