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

Method Command

command.go:172–180  ·  command.go::Command.Command
(name string)

Source from the content-addressed store, hash-verified

170}
171
172func (cmd *Command) Command(name string) *Command {
173 for _, subCmd := range cmd.Commands {
174 if subCmd.HasName(name) {
175 return subCmd
176 }
177 }
178
179 return nil
180}
181
182func (cmd *Command) checkHelp() bool {
183 tracef("checking if help is wanted (cmd=%[1]q)", cmd.Name)

Callers 8

parseFlagsMethod · 0.95
ensureHelpMethod · 0.95
runMethod · 0.95
TestCommand_CommandFunction · 0.95
suggestFlagFromErrorMethod · 0.95
shouldRunCompletionFunction · 0.80

Calls 1

HasNameMethod · 0.65