MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / IterCommandHelpRows

Function IterCommandHelpRows

cli/commands.go:93–108  ·  view source on GitHub ↗
(registry *skills.SkillRegistry, cwd string)

Source from the content-addressed store, hash-verified

91 for _, name := range BuiltinCommands {
92 items = append(items, CommandCompletionItem{Name: name, Description: CommandMeta[name]})
93 }
94 if registry == nil || cwd == "" {
95 return items
96 }
97 for _, skill := range userInvocableSkills(registry, cwd) {
98 items = append(items, CommandCompletionItem{
99 Name: "/" + skill.CanonicalName,
100 Description: skillHint(skill),
101 })
102 }
103 return items
104}
105
106func IterCommandHelpRows(registry *skills.SkillRegistry, cwd string) []CommandHelpRow {
107 rows := make([]CommandHelpRow, 0, len(BuiltinCommandSpecs))
108 for _, spec := range BuiltinCommandSpecs {
109 rows = append(rows, CommandHelpRow{Command: spec.HelpLabel(), Description: spec.Description})
110 }
111 if registry == nil || cwd == "" {

Callers

nothing calls this directly

Calls 3

userInvocableSkillsFunction · 0.85
skillHintFunction · 0.85
HelpLabelMethod · 0.80

Tested by

no test coverage detected