SliceValue is a reduced version of [pflag.SliceValue]. It is used to detect flags that accept multiple values and therefore can provide completion multiple times.
| 309 | // flags that accept multiple values and therefore can provide completion |
| 310 | // multiple times. |
| 311 | type SliceValue interface { |
| 312 | // GetSlice returns the flag value list as an array of strings. |
| 313 | GetSlice() []string |
| 314 | } |
| 315 | |
| 316 | func (c *Command) getCompletions(args []string) (*Command, []Completion, ShellCompDirective, error) { |
| 317 | // The last argument, which is not completely typed by the user, |
nothing calls this directly
no outgoing calls
no test coverage detected