Documentation ¶
Index ¶
- Constants
- Variables
- func BuildApplication(commitHistory []*model.Commit, version string) *tview.Application
- func BuildCommitTable(commitHistory []*model.Commit) *tview.Table
- func BuildDiffView(originalText, newText *tview.TextView) *tview.Flex
- func BuildSliceTreeNode[T any](field reflect.Value, root *tview.TreeNode, obj any, label string)
- func BuildTextView() *tview.TextView
- func BuildTreeMapNode(field reflect.Value, root *tview.TreeNode)
- func BuildTreeModel(doc libopenapi.Document, changes *whatChangedModel.DocumentChanges) *tview.TreeNode
- func BuildTreeView(commit *model.Commit) *tview.TreeView
- func CreateNode(name string, object any) *tview.TreeNode
- func DigIntoObject[T any](root, node *tview.TreeNode, field reflect.Value)
- func RegisterModelsWithCommitTable(table *tview.Table, commitHistory []*model.Commit, treeView *tview.TreeView, ...)
- func RenderDiff(left, right *tview.TextView, diffView *tview.Flex, change *whatChanged.Change)
- func ResetTableColors(table *tview.Table, row int, highlight tcell.Color)
- type ColorType
- type RGB
- type ViewType
Constants ¶
View Source
const ( CYAN = "#67eaf9::b" MAGENTA = "#ea67f9::b" )
Variables ¶
View Source
var CYAN_CELL_COLOR = tcell.NewRGBColor(CYAN_RGB.R(), CYAN_RGB.G(), CYAN_RGB.B())
View Source
var CYAN_RGB = RGB{103, 234, 249}
View Source
var MAGENTA_CELL_COLOR = tcell.NewRGBColor(MAGENTA_RGB.R(), MAGENTA_RGB.G(), MAGENTA_RGB.B())
View Source
var MAGENTA_RGB = RGB{234, 103, 249}
Functions ¶
func BuildApplication ¶
func BuildApplication(commitHistory []*model.Commit, version string) *tview.Application
func BuildSliceTreeNode ¶
func BuildTextView ¶
func BuildTreeModel ¶
func BuildTreeModel(doc libopenapi.Document, changes *whatChangedModel.DocumentChanges) *tview.TreeNode
func RenderDiff ¶
func ResetTableColors ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.