print

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ManiList = table.Style{
	Name: "table",

	Box: StyleBoxDefault,

	Color: table.ColorOptions{},

	Format: table.FormatOptions{
		Header: text.FormatDefault,
		Row:    text.FormatDefault,
		Footer: text.FormatUpper,
	},

	Options: table.Options{
		DrawBorder:      true,
		SeparateColumns: true,
		SeparateFooter:  false,
		SeparateHeader:  true,
		SeparateRows:    false,
	},
}
View Source
var StyleBoxASCII = table.BoxStyle{
	BottomLeft:       "+",
	BottomRight:      "+",
	BottomSeparator:  "+",
	EmptySeparator:   text.RepeatAndTrim(" ", text.RuneCount("+")),
	Left:             "|",
	LeftSeparator:    "+",
	MiddleHorizontal: "-",
	MiddleSeparator:  "+",
	MiddleVertical:   "|",
	PaddingLeft:      " ",
	PaddingRight:     " ",
	PageSeparator:    "\n",
	Right:            "|",
	RightSeparator:   "+",
	TopLeft:          "+",
	TopRight:         "+",
	TopSeparator:     "+",
	UnfinishedRow:    " ~",
}
View Source
var StyleBoxDefault = table.BoxStyle{
	BottomLeft:       "└",
	BottomRight:      "┘",
	BottomSeparator:  "┴",
	EmptySeparator:   text.RepeatAndTrim(" ", text.RuneCount("┼")),
	Left:             "│",
	LeftSeparator:    "├",
	MiddleHorizontal: "─",
	MiddleSeparator:  "┼",
	MiddleVertical:   "│",
	PaddingLeft:      " ",
	PaddingRight:     " ",
	PageSeparator:    "\n",
	Right:            "│",
	RightSeparator:   "┤",
	TopLeft:          "┌",
	TopRight:         "┐",
	TopSeparator:     "┬",
	UnfinishedRow:    " ≈",
}
View Source
var StyleNoBorders = table.BoxStyle{
	PaddingLeft:  "",
	PaddingRight: " ",
}
View Source
var TreeStyle list.Style

Functions

func PrintInfo

func PrintInfo(config *dao.Config)

func PrintProjectBlocks

func PrintProjectBlocks(projects []dao.Project)

func PrintProjects

func PrintProjects(
	projects []dao.Project,
	listFlags ListFlags,
	projectFlags ListProjectFlags,
)

func PrintRun

func PrintRun(output string, data TableOutput)

func PrintTags

func PrintTags(
	tags []string,
	listFlags ListFlags,
	tagFlags ListTagFlags,
)

func PrintTaskBlock added in v0.6.1

func PrintTaskBlock(tasks []dao.Task)

func PrintTasks added in v0.6.1

func PrintTasks(
	tasks []dao.Task,
	listFlags ListFlags,
	taskFlags ListTaskFlags,
)

func PrintTree added in v0.6.1

func PrintTree(output string, tree []core.TreeNode)

Types

type ListFlags

type ListFlags struct {
	NoHeaders bool
	NoBorders bool
	Output    string
}

type ListProjectFlags

type ListProjectFlags struct {
	Tags    []string
	Dirs    []string
	Headers []string
}

type ListTagFlags

type ListTagFlags struct {
	Headers []string
}

type ListTaskFlags added in v0.6.1

type ListTaskFlags struct {
	Headers []string
}

type TableOutput added in v0.6.1

type TableOutput struct {
	Headers table.Row
	Rows    []table.Row
}

Jump to

Keyboard shortcuts

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