code: func AddPluginCommandStubs(dockerCli command.Cli, cmd *cobra.Command) error {
  	plugins, err := ListPlugins(dockerCli, cmd)
  	if err != nil {
  		return err
  	}
  	for _, p := range plugins {
  		vendor := p.Vendor
  		if vendor == "" {
  			vendor = "unknown"
  		}
  		annotations := map[string]string{
  			CommandAnnotationPlugin:        "true",
  			CommandAnnotationPluginVendor:  vendor,
  			CommandAnnotationPluginVersion: p.Version,
  		}
  		if p.Err != nil {
  			annotations[CommandAnnotationPluginInvalid] = p.Err.Error()
  		}
  		cmd.AddCommand(&cobra.Command{
  			Use:         p.Name,
  			Short:       p.ShortDescription,
  			Run:         func(_ *cobra.Command, _ []string) {},
  			Annotations: annotations,
  		})
  	}
  	return nil
  }
docs: // AddPluginCommandStubs adds a stub cobra.Commands for each valid and invalid
  // plugin. The command stubs will have several annotations added, see
  // `CommandAnnotationPlugin*`.