static

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 5 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   = themeFromPalette(theme.PaletteCyber)
	Matrix  = themeFromPalette(theme.PaletteMatrix)
	Dracula = themeFromPalette(theme.PaletteDracula)
	Nord    = themeFromPalette(theme.PaletteNord)
)

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

ResolveTheme returns the named theme, defaulting to Cyber.

Jump to

Keyboard shortcuts

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