Documentation
¶
Index ¶
- Variables
- func CreateTable[T Items](options PrintTableOptions, defaultHeaders []string, taskHeaders []string, ...) table.Writer
- func FormatTable(theme dao.Theme) table.Style
- func GetMaxTextWidth(text string) int
- func GetTextDimensions(text string) (int, int)
- func PrintProjectBlocks(projects []dao.Project, colorize bool, block dao.Block, f Formatter) string
- func PrintTable[T Items](data []T, options PrintTableOptions, defaultHeaders []string, ...)
- func PrintTaskBlock(tasks []dao.Task, colorize bool, block dao.Block, f Formatter) string
- func PrintTree(config *dao.Config, theme dao.Theme, listFlags *core.ListFlags, ...)
- func RenderTable(t table.Writer, output string)
- type Formatter
- type GookitFormatter
- type Items
- type PrintTableOptions
- type TviewFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var BLOCK dao.Block
View Source
var COLORIZE bool
Functions ¶
func CreateTable ¶ added in v0.20.0
func GetMaxTextWidth ¶ added in v0.30.0
func GetTextDimensions ¶ added in v0.30.0
func PrintProjectBlocks ¶
func PrintTable ¶ added in v0.20.0
func PrintTaskBlock ¶ added in v0.6.1
func RenderTable ¶ added in v0.20.0
Types ¶
type Formatter ¶ added in v0.30.0
type Formatter interface {
Format(prefix string, key string, value string, separator string, keyColor *dao.ColorOptions, valueColor *dao.ColorOptions) string
}
var FORMATTER Formatter
type GookitFormatter ¶ added in v0.30.0
type GookitFormatter struct{}
func (GookitFormatter) Format ¶ added in v0.30.0
func (g GookitFormatter) Format( prefix string, key string, value string, separator string, keyColor *dao.ColorOptions, valueColor *dao.ColorOptions, ) string
type PrintTableOptions ¶ added in v0.20.0
type TviewFormatter ¶ added in v0.30.0
type TviewFormatter struct{}
func (TviewFormatter) Format ¶ added in v0.30.0
func (t TviewFormatter) Format( prefix string, key string, value string, separator string, keyColor *dao.ColorOptions, valueColor *dao.ColorOptions, ) string
Click to show internal directories.
Click to hide internal directories.