Documentation ¶
Overview ¶
Package clitable implements tabular display for command line tools.
The generated tables are vaguely reminiscent of the output of 'kubectl'. For example:
NAME ADDRESS STATUS foo 1.2.3.4 Healthy bar 1.2.3.12 Timeout
The tables are sparse by design, with each Entry having a number of Key/Value entries. Then, all keys for all entries get unified into columns, and entries without a given key are rendered spare (i.e. the rendered cell is empty).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
A Column in a table, not containing all entries that make up this table, but containing their maximum width (for layout purposes).
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
An Entry is made up of column key -> value pairs.
Click to show internal directories.
Click to hide internal directories.