Documentation
¶
Index ¶
- func CreateTable(options PrintTableOptions, tableHeaders []string) table.Writer
- func FormatTable(theme dao.Theme) table.Style
- func GetAlign(s string) text.Align
- func GetAttr(s string) *text.Color
- func GetBg(s string) *text.Color
- func GetFg(s string) *text.Color
- func GetFormat(s string) text.Format
- func PrintServerBlocks(servers []dao.Server)
- func PrintSpecBlocks(specs []dao.Spec, indent bool, name bool)
- func PrintTable[T dao.Items](data []T, options PrintTableOptions, headers []string)
- func PrintTargetBlocks(targets []dao.Target, indent bool)
- func PrintTaskBlock(tasks []dao.Task)
- func RenderTable(t table.Writer, output string)
- type PrintTableOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
func CreateTable( options PrintTableOptions, tableHeaders []string, ) table.Writer
func GetAttr ¶
Attr (color) map against go-pretty/table (attributes belong to the same types as fg/bg)
func PrintServerBlocks ¶
func PrintSpecBlocks ¶ added in v0.12.0
func PrintTable ¶
func PrintTable[T dao.Items]( data []T, options PrintTableOptions, headers []string, )
func PrintTargetBlocks ¶ added in v0.12.0
func PrintTaskBlock ¶
func RenderTable ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.