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

Function fishAddFileFlag

fish.go:165–177  ·  fish.go::fishAddFileFlag
(flag Flag, completion *strings.Builder)

Source from the content-addressed store, hash-verified

163}
164
165func fishAddFileFlag(flag Flag, completion *strings.Builder) {
166 switch f := flag.(type) {
167 case *StringFlag:
168 if f.TakesFile {
169 return
170 }
171 case *StringSliceFlag:
172 if f.TakesFile {
173 return
174 }
175 }
176 completion.WriteString(" -f")
177}
178
179func fishSubcommandHelper(binary string, command *Command, siblings []*Command) string {
180 fishHelper := fmt.Sprintf("__fish_%s_no_subcommand", binary)

Callers 1

prepareFishFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected