MCPcopy Index your code
hub / github.com/docker/docker-agent / visitAll

Function visitAll

cmd/root/root.go:244–249  ·  view source on GitHub ↗
(cmd *cobra.Command, fn func(*cobra.Command))

Source from the content-addressed store, hash-verified

242}
243
244func visitAll(cmd *cobra.Command, fn func(*cobra.Command)) {
245 fn(cmd)
246 for _, cmd := range cmd.Commands() {
247 visitAll(cmd, fn)
248 }
249}
250
251// isManagementInvocation reports whether args correspond to an invocation that
252// must not trigger a self-update + restart: the docker CLI plugin metadata

Callers 1

ExecuteFunction · 0.85

Calls 1

CommandsMethod · 0.80

Tested by

no test coverage detected