MCPcopy Index your code
hub / github.com/docker/cli / FromList

Function FromList

cli/command/completion/functions.go:171–173  ·  view source on GitHub ↗

FromList offers completion for the given list of options.

(options ...string)

Source from the content-addressed store, hash-verified

169
170// FromList offers completion for the given list of options.
171func FromList(options ...string) cobra.CompletionFunc {
172 return Unique(cobra.FixedCompletions(options, cobra.ShellCompDirectiveNoFileComp))
173}
174
175// FileNames is a convenience function to use [cobra.ShellCompDirectiveDefault],
176// which indicates to let the shell perform its default behavior after

Callers 1

TestCompleteFromListFunction · 0.85

Calls 1

UniqueFunction · 0.85

Tested by 1

TestCompleteFromListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…