Documentation ¶
Index ¶
- Constants
- type TabularAppIface
- type TabularFormatter
- func (*TabularFormatter) DefaultTimeStyle() string
- func (f *TabularFormatter) FileError(w io.Writer, err error, path string)
- func (f *TabularFormatter) FolderHeader(w io.Writer, path string, itemCount int)
- func (*TabularFormatter) FolderTail(w io.Writer, path string)
- func (*TabularFormatter) FormatItem(tableObj *table.Table, item any) ([]string, error)
- func (*TabularFormatter) FormatValue(colName string, value string) (string, error)
- func (*TabularFormatter) LinkTargetSep() string
- func (*TabularFormatter) LongLinkTarget() bool
- func (*TabularFormatter) LongSet(cols map[string]bool)
- func (f *TabularFormatter) PrintError(w io.Writer, err error)
- func (f *TabularFormatter) PrintItems(w io.Writer, tableObj *table.Table, items iface.FormattedItemList) error
- func (f *TabularFormatter) SizeFormat() SizeFormat
- func (f *TabularFormatter) TableHeader(w io.Writer, tableObj *table.Table)
Constants ¶
View Source
const Reset = "\x1b[0m"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TabularAppIface ¶
type TabularFormatter ¶
type TabularFormatter struct {
// contains filtered or unexported fields
}
func New ¶
func New( app TabularAppIface, args *lsargs.Arguments, colors *lscolors.TabularColors, ) *TabularFormatter
func (*TabularFormatter) DefaultTimeStyle ¶
func (*TabularFormatter) DefaultTimeStyle() string
func (*TabularFormatter) FileError ¶
func (f *TabularFormatter) FileError(w io.Writer, err error, path string)
func (*TabularFormatter) FolderHeader ¶
func (f *TabularFormatter) FolderHeader(w io.Writer, path string, itemCount int)
func (*TabularFormatter) FolderTail ¶
func (*TabularFormatter) FolderTail(w io.Writer, path string)
func (*TabularFormatter) FormatItem ¶
func (*TabularFormatter) FormatItem(tableObj *table.Table, item any) ([]string, error)
func (*TabularFormatter) FormatValue ¶
func (*TabularFormatter) FormatValue(colName string, value string) (string, error)
func (*TabularFormatter) LinkTargetSep ¶
func (*TabularFormatter) LinkTargetSep() string
func (*TabularFormatter) LongLinkTarget ¶
func (*TabularFormatter) LongLinkTarget() bool
func (*TabularFormatter) LongSet ¶
func (*TabularFormatter) LongSet(cols map[string]bool)
func (*TabularFormatter) PrintError ¶
func (f *TabularFormatter) PrintError(w io.Writer, err error)
func (*TabularFormatter) PrintItems ¶
func (f *TabularFormatter) PrintItems(w io.Writer, tableObj *table.Table, items iface.FormattedItemList) error
func (*TabularFormatter) SizeFormat ¶
func (f *TabularFormatter) SizeFormat() SizeFormat
func (*TabularFormatter) TableHeader ¶
func (f *TabularFormatter) TableHeader(w io.Writer, tableObj *table.Table)
Click to show internal directories.
Click to hide internal directories.