Documentation
¶
Overview ¶
internal/tree/tree.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTree ¶
func FormatTree(root *Node, opts FormatOptions) string
FormatTree returns a string representation of the tree with box-drawing characters.
Types ¶
type FormatOptions ¶
type FormatOptions struct {
// CurrentBranch is marked with "* " prefix
CurrentBranch string
// PRURLFunc returns the URL for a PR number (optional)
PRURLFunc func(pr int) string
// Style is used for coloring output (optional, defaults to no color)
Style *style.Style
}
FormatOptions configures tree formatting.
type Node ¶
Node represents a branch in the stack tree.
func GetAncestors ¶
GetAncestors returns all ancestors from node to root (excluding the node itself).
func GetDescendants ¶
GetDescendants returns all descendants of a node (excluding the node itself).
Click to show internal directories.
Click to hide internal directories.