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

Function isOSTypeSupported

cmd/docker/docker.go:746–751  ·  view source on GitHub ↗
(f *pflag.Flag, osType string)

Source from the content-addressed store, hash-verified

744}
745
746func isOSTypeSupported(f *pflag.Flag, osType string) bool {
747 if v := getFlagAnnotation(f, "ostype"); v != "" && osType != "" {
748 return osType == v
749 }
750 return true
751}
752
753// hasTags return true if any of the command's parents has tags
754func hasTags(cmd *cobra.Command) bool {

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…