MCPcopy
hub / github.com/docker/compose / hasFlag

Function hasFlag

cmd/compose/hooks.go:147–154  ·  view source on GitHub ↗
(flags map[string]string, names ...string)

Source from the content-addressed store, hash-verified

145}
146
147func hasFlag(flags map[string]string, names ...string) bool {
148 for _, n := range names {
149 if _, ok := flags[n]; ok {
150 return true
151 }
152 }
153 return false
154}
155
156// HooksCommand returns the hidden subcommand that the Docker CLI invokes
157// after command execution when the compose plugin has hooks configured.

Callers 2

hooks.goFile · 0.85
resolveAppIDInFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected