MCPcopy Create free account
hub / github.com/docker/cli / orchestratorSubCommands

Function orchestratorSubCommands

cli/cobra.go:341–349  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

339}
340
341func orchestratorSubCommands(cmd *cobra.Command) []*cobra.Command {
342 cmds := []*cobra.Command{}
343 for _, sub := range allManagementSubCommands(cmd) {
344 if _, ok := sub.Annotations["swarm"]; ok {
345 cmds = append(cmds, sub)
346 }
347 }
348 return cmds
349}
350
351func allManagementSubCommands(cmd *cobra.Command) []*cobra.Command {
352 cmds := []*cobra.Command{}

Callers 1

hasSwarmSubCommandsFunction · 0.85

Calls 1

allManagementSubCommandsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…