Documentation ¶
Index ¶
- Variables
- func PrintInfo(config *dao.Config)
- func PrintProjectBlocks(projects []dao.Project)
- func PrintProjects(projects []dao.Project, listFlags ListFlags, projectFlags ListProjectFlags)
- func PrintRun(output string, data TableOutput)
- func PrintTags(tags []string, listFlags ListFlags, tagFlags ListTagFlags)
- func PrintTaskBlock(tasks []dao.Task)
- func PrintTasks(tasks []dao.Task, listFlags ListFlags, taskFlags ListTaskFlags)
- func PrintTree(output string, tree []core.TreeNode)
- type ListFlags
- type ListProjectFlags
- type ListTagFlags
- type ListTaskFlags
- type TableOutput
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 PrintProjectBlocks ¶
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 PrintTasks ¶ added in v0.6.1
func PrintTasks( tasks []dao.Task, listFlags ListFlags, taskFlags ListTaskFlags, )
Types ¶
type ListProjectFlags ¶
type ListTagFlags ¶
type ListTagFlags struct {
Headers []string
}
type ListTaskFlags ¶ added in v0.6.1
type ListTaskFlags struct {
Headers []string
}
Click to show internal directories.
Click to hide internal directories.