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

Function getFlagAnnotation

cmd/docker/docker.go:732–737  ·  view source on GitHub ↗
(f *pflag.Flag, annotation string)

Source from the content-addressed store, hash-verified

730}
731
732func getFlagAnnotation(f *pflag.Flag, annotation string) string {
733 if value, ok := f.Annotations[annotation]; ok && len(value) == 1 {
734 return value[0]
735 }
736 return ""
737}
738
739func isVersionSupported(f *pflag.Flag, clientVersion string) bool {
740 if v := getFlagAnnotation(f, "version"); v != "" {

Callers 3

areFlagsSupportedFunction · 0.85
isVersionSupportedFunction · 0.85
isOSTypeSupportedFunction · 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…