code: func NewPushCommand(dockerCli command.Cli) *cobra.Command {
  	var opts pushOptions
  
  	cmd := &cobra.Command{
  		Use:   "push [OPTIONS] NAME[:TAG]",
  		Short: "Push an image or a repository to a registry",
  		Args:  cli.ExactArgs(1),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.remote = args[0]
  			return RunPush(dockerCli, opts)
  		},
  	}
  
  	flags := cmd.Flags()
  
  	command.AddTrustSigningFlags(flags, &opts.untrusted, dockerCli.ContentTrustEnabled())
  
  	return cmd
  }
docs: // NewPushCommand creates a new `docker push` command