printer

package
v0.0.0-...-eb9d35c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatTable = "table"
	OutputFormatJSON  = "json"
)

Variables

This section is empty.

Functions

func ColoredPriority

func ColoredPriority(status entity.TaskPriority) string

func ColoredStatus

func ColoredStatus(status entity.TaskStatus) string

Types

type OutputFormat

type OutputFormat string

type Printer

type Printer struct {
	Stdout io.Writer
}

func New

func New(out io.Writer) *Printer

func (*Printer) PrintStatusUpdate

func (p *Printer) PrintStatusUpdate(title string, from, to entity.TaskStatus, padding int)

func (*Printer) PrintTask

func (p *Printer) PrintTask(task entity.Task, caption string)

func (*Printer) PrintTaskBoard

func (p *Printer) PrintTaskBoard(todo, doing, done entity.TaskList)

func (*Printer) PrintTaskList

func (p *Printer) PrintTaskList(tasks []entity.Task)

func (*Printer) PrintTaskListJSON

func (p *Printer) PrintTaskListJSON(tasks []entity.Task)

Jump to

Keyboard shortcuts

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