static

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package static renders hash derivation results to a terminal writer.

Index

Constants

This section is empty.

Variables

View Source
var Cyber = Theme{
	Banner: lipgloss.NewStyle().Foreground(lipgloss.Color("#00D4FF")).Bold(true),
	Label:  lipgloss.NewStyle().Foreground(lipgloss.Color("#00D4FF")),
	Value:  lipgloss.NewStyle().Foreground(lipgloss.Color("#E5E5E5")),
	Dim:    lipgloss.NewStyle().Foreground(lipgloss.Color("#3A3A3A")),
}
View Source
var Dracula = Theme{
	Banner: lipgloss.NewStyle().Foreground(lipgloss.Color("#BD93F9")).Bold(true),
	Label:  lipgloss.NewStyle().Foreground(lipgloss.Color("#BD93F9")),
	Value:  lipgloss.NewStyle().Foreground(lipgloss.Color("#F8F8F2")),
	Dim:    lipgloss.NewStyle().Foreground(lipgloss.Color("#44475A")),
}
View Source
var Matrix = Theme{
	Banner: lipgloss.NewStyle().Foreground(lipgloss.Color("#00FF41")).Bold(true),
	Label:  lipgloss.NewStyle().Foreground(lipgloss.Color("#00FF41")),
	Value:  lipgloss.NewStyle().Foreground(lipgloss.Color("#CCFFCC")),
	Dim:    lipgloss.NewStyle().Foreground(lipgloss.Color("#1A3A1A")),
}
View Source
var Nord = Theme{
	Banner: lipgloss.NewStyle().Foreground(lipgloss.Color("#88C0D0")).Bold(true),
	Label:  lipgloss.NewStyle().Foreground(lipgloss.Color("#88C0D0")),
	Value:  lipgloss.NewStyle().Foreground(lipgloss.Color("#ECEFF4")),
	Dim:    lipgloss.NewStyle().Foreground(lipgloss.Color("#4C566A")),
}

Functions

func Boot

func Boot(w io.Writer, opts Options)

Boot prints the banner line to w.

func RenderSingle

func RenderSingle(w io.Writer, value string)

RenderSingle prints just the requested field value — pipe-friendly.

func RenderTable

func RenderTable(w io.Writer, r types.Result, opts Options)

RenderTable prints the full derivation table for r.

Types

type Options

type Options struct {
	Theme   Theme
	NoColor bool
	Quiet   bool
}

Options configures static rendering.

type Theme

type Theme struct {
	Banner lipgloss.Style
	Label  lipgloss.Style
	Value  lipgloss.Style
	Dim    lipgloss.Style
}

Theme holds lipgloss styles for terminal output.

func ResolveTheme

func ResolveTheme(name string) Theme

Jump to

Keyboard shortcuts

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