(cmd *cobra.Command, fn func(*cobra.Command))
| 242 | } |
| 243 | |
| 244 | func 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 |