AddCommand adds a command to a category, creating a new category if necessary.
(category string, command *Command)
| 6 | type CommandCategories interface { |
| 7 | // AddCommand adds a command to a category, creating a new category if necessary. |
| 8 | AddCommand(category string, command *Command) |
| 9 | // Categories returns a slice of categories sorted by name |
| 10 | Categories() []CommandCategory |
| 11 | } |
no outgoing calls
no test coverage detected