MCPcopy
hub / github.com/spf13/cobra / SliceValue

Interface SliceValue

completions.go:311–314  ·  completions.go::SliceValue

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.

Source from the content-addressed store, hash-verified

309// flags that accept multiple values and therefore can provide completion
310// multiple times.
311type SliceValue interface {
312 // GetSlice returns the flag value list as an array of strings.
313 GetSlice() []string
314}
315
316func (c *Command) getCompletions(args []string) (*Command, []Completion, ShellCompDirective, error) {
317 // The last argument, which is not completely typed by the user,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected