package
Version:
v0.11.2
Opens a new window with list of versions in this module.
Published: Mar 4, 2025
License: MPL-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package printer provides utilities for printing standard structures from api in convenient formats
func MustRegisterOutputFormatFlags(
cmd *cobra.Command,
outputFormat, fieldSeparator, recordSeparator *string,
)
Format represents supported printing outputs
All supported output formats by a Printer
type Printer interface {
Print(interface{}) error
}
Printer represents generic printer for cli
New returns an instance of a proper printer based on format parameter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.