code: func (f *HumanPrintFlags) ToPrinter(outputFormat string) (printers.ResourcePrinter, error) {
  	if len(outputFormat) > 0 && outputFormat != "wide" {
  		return nil, genericclioptions.NoCompatiblePrinterError{Options: f, AllowedFormats: f.AllowedFormats()}
  	}
  
  	showKind := false
  	if f.ShowKind != nil {
  		showKind = *f.ShowKind
  	}
  
  	showLabels := false
  	if f.ShowLabels != nil {
  		showLabels = *f.ShowLabels
  	}
  
  	columnLabels := []string{}
  	if f.ColumnLabels != nil {
  		columnLabels = *f.ColumnLabels
  	}
  
  	p := printers.NewTablePrinter(printers.PrintOptions{
  		Kind:          f.Kind,
  		WithKind:      showKind,
  		NoHeaders:     f.NoHeaders,
  		Wide:          outputFormat == "wide",
  		WithNamespace: f.WithNamespace,
  		ColumnLabels:  columnLabels,
  		ShowLabels:    showLabels,
  	})
  	printersinternal.AddHandlers(p)
  
  	// TODO(juanvallejo): handle sorting here
  
  	return p, nil
  }
docs: // ToPrinter receives an outputFormat and returns a printer capable of
  // handling human-readable output.