(binary string, command *Command)
| 194 | } |
| 195 | |
| 196 | func 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 | |
| 204 | func commandAncestry(command *Command) string { |
| 205 | var ancestry []string |
no test coverage detected