MCPcopy
hub / github.com/urfave/cli / newCommandCategories

Function newCommandCategories

category.go:15–18  ·  category.go::newCommandCategories
()

Source from the content-addressed store, hash-verified

13type commandCategories []*commandCategory
14
15func newCommandCategories() CommandCategories {
16 ret := commandCategories([]*commandCategory{})
17 return &ret
18}
19
20func (c *commandCategories) Less(i, j int) bool {
21 return lexicographicLess((*c)[i].Name(), (*c)[j].Name())

Callers 2

setupDefaultsMethod · 0.85
setupSubcommandMethod · 0.85

Calls 1

commandCategoriesTypeAlias · 0.85

Tested by

no test coverage detected