Documentation ¶
Index ¶
- func ConstructTable(numRows int, numCols int, widths []int, rows [][]string, writer io.Writer) error
- func GetColumnWidths(numRows int, numCols int, rows [][]string) []int
- func JsonOutput(obj interface{}, writer io.Writer) error
- func RawOutput(obj interface{}, writer io.Writer) error
- func TableOutput(obj interface{}, writer io.Writer) error
- func TableOutputForGetCommands(obj interface{}, writer io.Writer) error
- func YamlOutput(obj interface{}, writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructTable ¶
func JsonOutput ¶
func RawOutput ¶ added in v1.8.0
RawOutput is an output formatter whose output is similar to fmt.Print(responseString) to better display multiple-line string responses.
func TableOutput ¶
func TableOutputForGetCommands ¶
tableOutputForGetCommands formats the table output for "get" commands.
func YamlOutput ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.