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

Method HelpLabel

cli/commands.go:22–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func (s SlashCommandSpec) HelpLabel() string {
23 names := s.Names()
24 if len(names) == 0 {
25 return ""
26 }
27 label := names[0]
28 for _, name := range names[1:] {
29 label += ", " + name
30 }
31 return label
32}
33
34var BuiltinCommandSpecs = []SlashCommandSpec{
35 {Primary: "/help", Description: "Show this help"},

Callers 1

IterCommandHelpRowsFunction · 0.80

Calls 1

NamesMethod · 0.95

Tested by

no test coverage detected