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

Function fishFlagHelper

fish.go:196–202  ·  fish.go::fishFlagHelper
(binary string, command *Command)

Source from the content-addressed store, hash-verified

194}
195
196func fishFlagHelper(binary string, command *Command) string {
197 fishHelper := fmt.Sprintf("__fish_%s_no_subcommand", binary)
198 if len(command.Lineage()) > 1 {
199 fishHelper = commandAncestry(command)
200 }
201 return fishHelper
202}
203
204func commandAncestry(command *Command) string {
205 var ancestry []string

Callers 3

prepareFishCommandsFunction · 0.85
prepareFishFlagsFunction · 0.85

Calls 2

commandAncestryFunction · 0.85
LineageMethod · 0.80

Tested by

no test coverage detected