code: func newInspectCommand(dockerCli command.Cli) *cobra.Command {
  	var opts inspectOptions
  
  	cmd := &cobra.Command{
  		Use:   "inspect [OPTIONS] [MANIFEST_LIST] MANIFEST",
  		Short: "Display an image manifest, or manifest list",
  		Args:  cli.RequiresRangeArgs(1, 2),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			switch len(args) {
  			case 1:
  				opts.ref = args[0]
  			case 2:
  				opts.list = args[0]
  				opts.ref = args[1]
  			}
  			return runInspect(dockerCli, opts)
  		},
  	}
  
  	flags := cmd.Flags()
  	flags.BoolVar(&opts.insecure, "insecure", false, "Allow communication with an insecure registry")
  	flags.BoolVarP(&opts.verbose, "verbose", "v", false, "Output additional info including layers and platform")
  	return cmd
  }
docs: // NewInspectCommand creates a new `docker manifest inspect` command