Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OutputFormat string
)
Functions ¶
func Confirmation ¶
Types ¶
type Output ¶
type Output struct { Table TableOutput DataOutput interface{} }
func NewOutput ¶
func NewOutput(table TableOutput, dataOutput interface{}) *Output
func (*Output) AddSubHeaders ¶
func (*Output) VariableOutput ¶
type OutputType ¶
type OutputType string
const ( OUTPUT_TABLE OutputType = "table" OUTPUT_JSON OutputType = "json" OUTPUT_YAML OutputType = "yaml" )
type TableOutput ¶
type TableOutput struct { Headers []string SubHeaders []string Data [][]interface{} ColumnConfigs []table.ColumnConfig }
Click to show internal directories.
Click to hide internal directories.