cmd

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdColorizeManagedFields

func NewCmdColorizeManagedFields(streams genericiooptions.IOStreams) *cobra.Command

Types

type ColorJSONPrinter

type ColorJSONPrinter struct{}

func (*ColorJSONPrinter) PrintObj

func (p *ColorJSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error

type ColorMarker

type ColorMarker struct {
	// contains filtered or unexported fields
}

type ColorYAMLPrinter

type ColorYAMLPrinter struct {
	// contains filtered or unexported fields
}

func (*ColorYAMLPrinter) PrintObj

func (p *ColorYAMLPrinter) PrintObj(obj runtime.Object, w io.Writer) error

type ColorizeManagedFieldsOptions

type ColorizeManagedFieldsOptions struct {
	PrintFlags *PrintFlags

	Namespace         string
	ExplicitNamespace bool

	genericiooptions.IOStreams
}

func NewColorizeManagedFieldsOptions

func NewColorizeManagedFieldsOptions(streams genericiooptions.IOStreams) *ColorizeManagedFieldsOptions

func (*ColorizeManagedFieldsOptions) Complete

func (o *ColorizeManagedFieldsOptions) Complete(f cmdutil.Factory, args []string) error

func (*ColorizeManagedFieldsOptions) Run

type PrintFlags

type PrintFlags struct {
	JSONYamlPrintFlags *genericclioptions.JSONYamlPrintFlags

	NoDescription *bool
	OutputFormat  *string
}

func NewPrintFlags

func NewPrintFlags() *PrintFlags

func (*PrintFlags) AddFlags

func (f *PrintFlags) AddFlags(cmd *cobra.Command)

func (*PrintFlags) AllowedFormats

func (f *PrintFlags) AllowedFormats() []string

func (*PrintFlags) ToPrinter

func (f *PrintFlags) ToPrinter() (printers.ResourcePrinter, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL