code: func NewNodeCommand(dockerCli command.Cli) *cobra.Command {
  	cmd := &cobra.Command{
  		Use:   "node",
  		Short: "Manage Swarm nodes",
  		Args:  cli.NoArgs,
  		RunE:  command.ShowHelp(dockerCli.Err()),
  		Annotations: map[string]string{
  			"version": "1.24",
  			"swarm":   "",
  		},
  	}
  	cmd.AddCommand(
  		newDemoteCommand(dockerCli),
  		newInspectCommand(dockerCli),
  		newListCommand(dockerCli),
  		newPromoteCommand(dockerCli),
  		newRemoveCommand(dockerCli),
  		newPsCommand(dockerCli),
  		newUpdateCommand(dockerCli),
  	)
  	return cmd
  }
docs: // NewNodeCommand returns a cobra command for `node` subcommands