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

Method Lineage

command.go:559–567  ·  command.go::Command.Lineage

Lineage returns *this* command and all of its ancestor commands in order from child to parent

()

Source from the content-addressed store, hash-verified

557// Lineage returns *this* command and all of its ancestor commands
558// in order from child to parent
559func (cmd *Command) Lineage() []*Command {
560 lineage := []*Command{cmd}
561
562 if cmd.parent != nil {
563 lineage = append(lineage, cmd.parent.Lineage()...)
564 }
565
566 return lineage
567}
568
569// FullName returns the full name of the command.
570// Includes parent commands separated by space.

Callers 7

TestCommand_NumFlagsFunction · 0.95
lookupFlagMethod · 0.95
prepareFishCommandsFunction · 0.80
fishSubcommandHelperFunction · 0.80
fishFlagHelperFunction · 0.80
commandAncestryFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCommand_NumFlagsFunction · 0.76