code: func (p *ExecOptions) Validate() error {
  	if len(p.PodName) == 0 && len(p.ResourceName) == 0 {
  		return fmt.Errorf("pod or type/name must be specified")
  	}
  	if len(p.Command) == 0 {
  		return fmt.Errorf("you must specify at least one command for the container")
  	}
  	if p.Out == nil || p.ErrOut == nil {
  		return fmt.Errorf("both output and error output must be provided")
  	}
  	return nil
  }
docs: // Validate checks that the provided exec options are specified.