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

Function hasCompletionArg

cmd/docker/docker.go:556–563  ·  view source on GitHub ↗

hasCompletionArg returns true if a cobra completion arg request is found.

(args []string)

Source from the content-addressed store, hash-verified

554
555// hasCompletionArg returns true if a cobra completion arg request is found.
556func hasCompletionArg(args []string) bool {
557 for _, arg := range args {
558 if arg == cobra.ShellCompRequestCmd || arg == cobra.ShellCompNoDescRequestCmd {
559 return true
560 }
561 }
562 return false
563}
564
565type versionDetails interface {
566 CurrentVersion() string

Callers 1

runDockerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…