code: func (o PortForwardOptions) Validate() error {
  	if len(o.PodName) == 0 {
  		return fmt.Errorf("pod name or resource type/name must be specified")
  	}
  
  	if len(o.Ports) < 1 {
  		return fmt.Errorf("at least 1 PORT is required for port-forward")
  	}
  
  	if o.PortForwarder == nil || o.PodClient == nil || o.RESTClient == nil || o.Config == nil {
  		return fmt.Errorf("client, client config, restClient, and portforwarder must be provided")
  	}
  	return nil
  }
docs: // Validate validates all the required options for port-forward cmd.