print

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(r *config.Red_t, format string, a ...any)

func Error

func Error(format string, a ...any)

func Info

func Info(format string, a ...any)

func OK

func OK(format string, a ...any)

func PrintID

func PrintID(id int) string

func PrintRow

func PrintRow(r *config.Red_t, format string, a ...any)

func PrintRowHead

func PrintRowHead(r *config.Red_t, format string, a ...any)

func PrintTimeAgo

func PrintTimeAgo(ago string) string

Types

type Color

type Color int
const (
	None Color = iota
	ID
	Blue
	Green
)

func (Color) Color

func (s Color) Color(value string) string

type Column

type Column struct {
	FgColor     Color
	BgColor     Color
	ParentPad   bool
	ParentSize  int
	ContentSize int
	Content     string
}

type List

type List struct {
	Parent              int
	OldParent           int
	ParentLevel         int
	Offset              int
	Limit               int
	TotalCount          int
	ParentIssueGrouping bool
	// contains filtered or unexported fields
}

func NewList

func NewList(header ...string) *List

func (*List) AddRow

func (l *List) AddRow(id int, parentID int, row ...Column)

func (*List) Render

func (l *List) Render() string

func (*List) SetLimit

func (l *List) SetLimit(limit int)

func (*List) SetOffset

func (l *List) SetOffset(offset int)

func (*List) SetParentIssueGrouping

func (l *List) SetParentIssueGrouping(v bool)

func (*List) SetTotal

func (l *List) SetTotal(total int)

type Row

type Row struct {
	ID        int
	ParentID  int
	IgnorePad bool
	Solved    bool
	Columns   []Column
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL