Documentation
¶
Overview ¶
Package static renders JSON node trees to the terminal with syntax highlighting and optional annotation overlays (stats, merkle hashes).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Cyber = themeFromPalette(theme.PaletteCyber) Matrix = themeFromPalette(theme.PaletteMatrix) Dracula = themeFromPalette(theme.PaletteDracula) Nord = themeFromPalette(theme.PaletteNord) )
Functions ¶
func Boot ¶
Boot prints the neural-interface boot sequence to stderr. Call before Render. Suppressed when opts.Quiet is true.
Types ¶
type Options ¶
type Options struct {
Theme Theme
ShowStats bool
ShowMerkle bool
ShowLineNums bool
Compact bool
Quiet bool
NoColor bool
Filename string
}
Options controls rendering behaviour.
type Theme ¶
type Theme struct {
ObjectKey lipgloss.Style
ArrayIndex lipgloss.Style
StringVal lipgloss.Style
NumberVal lipgloss.Style
BoolVal lipgloss.Style
NullVal lipgloss.Style
Punctuation lipgloss.Style
LineNumber lipgloss.Style
HashTag lipgloss.Style
StatTag lipgloss.Style
ErrorStyle lipgloss.Style
Banner lipgloss.Style
BannerOK lipgloss.Style
}
Theme holds the color palette for static rendering.
func ResolveTheme ¶ added in v1.0.0
ResolveTheme returns the named theme, defaulting to Cyber.
Click to show internal directories.
Click to hide internal directories.