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

Method appendCommand

command.go:311–316  ·  command.go::Command.appendCommand
(aCmd *Command)

Source from the content-addressed store, hash-verified

309}
310
311func (cmd *Command) appendCommand(aCmd *Command) {
312 if !slices.Contains(cmd.Commands, aCmd) {
313 aCmd.parent = cmd
314 cmd.Commands = append(cmd.Commands, aCmd)
315 }
316}
317
318func (cmd *Command) handleExitCoder(ctx context.Context, err error) error {
319 if cmd.parent != nil {

Callers 2

setupDefaultsMethod · 0.95
ensureHelpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected