(cmd *cobra.Command)
| 328 | } |
| 329 | |
| 330 | func managementSubCommands(cmd *cobra.Command) []*cobra.Command { |
| 331 | cmds := []*cobra.Command{} |
| 332 | for _, sub := range allManagementSubCommands(cmd) { |
| 333 | if _, ok := sub.Annotations["swarm"]; ok { |
| 334 | continue |
| 335 | } |
| 336 | cmds = append(cmds, sub) |
| 337 | } |
| 338 | return cmds |
| 339 | } |
| 340 | |
| 341 | func orchestratorSubCommands(cmd *cobra.Command) []*cobra.Command { |
| 342 | cmds := []*cobra.Command{} |
no test coverage detected
searching dependent graphs…