Versions in this module Expand all Collapse all v0 v0.1.21758829476 Feb 6, 2026 v0.1.21758115741 Feb 6, 2026 Changes in this version + var DefaultHeaderFormatter Formatter + var DefaultPadding = 2 + var DefaultWriter io.Writer = os.Stdout + func AddOutputAndQueryFlags(cmd *cobra.Command) + func DefaultValueFormatter(columnIndex int, width int, val interface{}) string + func DefaultWidthFunc(value interface{}) int + func GetOutputAndQueryValues(cmd *cobra.Command, defaultQuery string) (string, string, error) + func GetTerminalLink(url string, displayText string) string + func OutputResult(w io.Writer, result interface{}, outputFormat string, query string, ...) error + func RoundtripMarshal(data interface{}) ([]interface{}, error) + type Formatter func(int, int, interface{}) string + type OutputFormat string + const OutputJson + const OutputJsonC + const OutputTable + const OutputTableBody + const OutputTsv + type OutputLink struct + Link string + Text string + func DecodeOutputLink(encodedValue string) *OutputLink + func (ol OutputLink) Encode() string + type Table interface + AddRow func(vals ...interface{}) Table + Print func() error + PrintRows func() error + WithHeaderFormatter func(f Formatter) Table + WithPadding func(p int) Table + WithValueFormatter func(f Formatter) Table + WithWidthFunc func(f WidthFunc) Table + WithWriter func(w io.Writer) Table + func NewTable(columnHeaders ...interface{}) Table + type WidthFunc func(interface{}) int