MCPcopy Create free account
hub / github.com/Sma1lboy/RegTool / ListCommandNames

Function ListCommandNames

cmd/command.go:56–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func ListCommandNames() []string {
57 keys := make([]string, 0, len(commandRegistry))
58 for key := range commandRegistry {
59 if key != mainMenuName {
60 keys = append(keys, key)
61 }
62 }
63 sort.Strings(keys)
64 names := make([]string, len(keys))
65 for i, key := range keys {
66 names[i] = commandRegistry[key].Name
67 }
68 return names
69}

Callers 1

newMainMenuModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected