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

Method AddCommand

category.go:8–8  ·  view source on GitHub ↗

AddCommand adds a command to a category, creating a new category if necessary.

(category string, command *Command)

Source from the content-addressed store, hash-verified

6type 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}

Callers 2

setupDefaultsMethod · 0.65
setupSubcommandMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected