Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewWarningPrinter (0.23 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/warningprinter.go

    }
    
    // WarningPrinterOptions controls the behavior of a WarningPrinter constructed using NewWarningPrinter()
    type WarningPrinterOptions struct {
    	// Color indicates that warning output can include ANSI color codes
    	Color bool
    }
    
    // NewWarningPrinter returns an implementation of warningPrinter that outputs warnings to the specified writer.
    func NewWarningPrinter(out io.Writer, opts WarningPrinterOptions) *WarningPrinter {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 23 11:10:15 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go

    	return f
    }
    
    // WithWarningPrinter initializes WarningPrinter with the given IOStreams
    func (f *ConfigFlags) WithWarningPrinter(ioStreams genericiooptions.IOStreams) *ConfigFlags {
    	f.warningPrinter = printers.NewWarningPrinter(ioStreams.ErrOut, printers.WarningPrinterOptions{Color: printers.AllowsColorOutput(ioStreams.ErrOut)})
    	return f
    }
    
    // NewConfigFlags returns ConfigFlags with default values set
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 15:04:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top