Documentation
¶
Index ¶
- Constants
- Variables
- func DateTime(value *strfmt.DateTime) string
- func Float(value float64) string
- func Int(value int64) string
- func Render(rows []Row)
- func RenderEmptyState(message string)
- func SortColumnsByPreference(ids []string)
- func String(value string) string
- func StringList(value []string, separator string) string
- type Cell
- type Header
- type Row
- type Table
Constants ¶
View Source
const MaxColWidth = 18
View Source
const MaxLength = 120
Variables ¶
View Source
var PreferredColumnOrder = []string{
"id",
"name",
"slug",
"environment",
"description",
"provisioning_type",
"team",
"ips",
"servers",
"vlans",
"tags",
"status",
"phase",
"ready",
"plan",
"os",
"operating_system",
"primary_ipv4",
"region",
"endpoint",
"storage_class",
"created_at",
"updated_at",
}
PreferredColumnOrder is the canonical column ordering shared by the static and interactive (Bubble Tea) table views. Unlisted columns follow in alphabetical order.
Functions ¶
func RenderEmptyState ¶
func RenderEmptyState(message string)
func SortColumnsByPreference ¶ added in v1.7.0
func SortColumnsByPreference(ids []string)
SortColumnsByPreference orders column ids by PreferredColumnOrder, with unlisted columns following alphabetically. Shared by the static and interactive renderers so the views never diverge.
func StringList ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.