Function
fishAddFileFlag
fish.go:165–177
· fish.go::fishAddFileFlag
(flag Flag, completion *strings.Builder)
Source from the content-addressed store, hash-verified
| 163 | } |
| 164 | |
| 165 | func 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 | |
| 179 | func fishSubcommandHelper(binary string, command *Command, siblings []*Command) string { |
| 180 | fishHelper := fmt.Sprintf("__fish_%s_no_subcommand", binary) |
Tested by
no test coverage detected