Documentation ¶
Overview ¶
Package printer defines utilities to display kpt CLI output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TruncateOutput bool
TruncateOutput defines should output be truncated
Functions ¶
Types ¶
type Options ¶
type Options struct { // PkgPath is the unique path to the package PkgPath types.UniquePath // PkgDisplayPath is the display path for the package PkgDisplayPath types.DisplayPath }
Options are optional options for printer
func (*Options) Pkg ¶
func (opt *Options) Pkg(p types.UniquePath) *Options
Pkg sets the package unique path in options
func (*Options) PkgDisplay ¶
func (opt *Options) PkgDisplay(p types.DisplayPath) *Options
PkgDisplayPath sets the package display path in options
type Printer ¶
type Printer interface { PrintPackage(pkg *pkg.Pkg, leadingNewline bool) Printf(format string, args ...interface{}) OptPrintf(opt *Options, format string, args ...interface{}) OutStream() io.Writer ErrStream() io.Writer }
Printer defines capabilities to display content in kpt CLI. The main intention, at the moment, is to abstract away printing output in the CLI so that we can evolve the kpt CLI UX.
func FromContextOrDie ¶
FromContext returns printer instance associated with the context.
Click to show internal directories.
Click to hide internal directories.