print

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	Box: StyleBoxLight,

	Color: table.ColorOptions{},

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

	Options: table.Options{
		DrawBorder:      true,
		SeparateColumns: true,
		SeparateFooter:  false,
		SeparateHeader:  true,
		SeparateRows:    false,
	},
}
View Source
var StyleBoxLight = 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: " ",
}

Functions

func PrintCommandBlocks

func PrintCommandBlocks(commands []dao.Command)

func PrintCommands

func PrintCommands(
	commands []dao.Command,
	listFlags ListFlags,
	commandFlags ListCommandFlags,
)

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(format string, outputs []dao.ProjectOutput)

func PrintTags

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

Types

type ListCommandFlags

type ListCommandFlags struct {
	Headers []string
}

type ListFlags

type ListFlags struct {
	NoHeaders bool
	NoBorders bool
	Format    string
}

type ListProjectFlags

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

type ListTagFlags

type ListTagFlags struct {
	Headers []string
}

Jump to

Keyboard shortcuts

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