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

Function isVersionSupported

cmd/docker/docker.go:739–744  ·  view source on GitHub ↗
(f *pflag.Flag, clientVersion string)

Source from the content-addressed store, hash-verified

737}
738
739func isVersionSupported(f *pflag.Flag, clientVersion string) bool {
740 if v := getFlagAnnotation(f, "version"); v != "" {
741 return versions.GreaterThanOrEqualTo(clientVersion, v)
742 }
743 return true
744}
745
746func isOSTypeSupported(f *pflag.Flag, osType string) bool {
747 if v := getFlagAnnotation(f, "ostype"); v != "" && osType != "" {

Callers 1

areFlagsSupportedFunction · 0.85

Calls 1

getFlagAnnotationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…