printer

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	IOStreams    genericiooptions.IOStreams
	OutputFormat OutputFormat
}

Options contains configuration for creating a printer.

type OutputFormat

type OutputFormat string

OutputFormat specifies the output format for printing results.

const (
	// JSON specifies JSON output format.
	JSON OutputFormat = "json"
	// Table specifies table output format.
	Table OutputFormat = "table"
	// YAML specifies YAML output format.
	YAML OutputFormat = "yaml"
)

func (*OutputFormat) Set

func (f *OutputFormat) Set(v string) error

Set implements the pflag.Value interface for OutputFormat.

func (*OutputFormat) String

func (f *OutputFormat) String() string

func (*OutputFormat) Type

func (f *OutputFormat) Type() string

Type returns the type name for the flag value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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