output

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HuhTheme = newHuhTheme()
View Source
var StdoutStyles = NewStyles(os.Stdout)

Functions

func Divider added in v1.5.0

func Divider(out *os.File, styles Styles)

func Domain added in v1.5.0

func Domain(domain synthient.Domain, out *os.File, styles Styles)

func Done added in v1.5.0

func Done(out *os.File, styles Styles, message string)

func Fail added in v1.5.0

func Fail(out *os.File, styles Styles, message string)
func Header(out *os.File, styles Styles, title string, detail ...any)

func IP added in v0.2.0

func IP(ip synthient.IP, out *os.File, styles Styles, spacing bool)

func Info added in v1.5.0

func Info(out *os.File, styles Styles, message string)

func Intro added in v1.5.0

func Intro(out *os.File, styles Styles, title string)

func IpCSV added in v0.2.0

func IpCSV(ip synthient.IP, writer *csv.Writer)

func JSON added in v1.5.0

func JSON(out *os.File, value any)

func Open added in v1.5.0

func Open(path string) (*os.File, func())

func Outro added in v1.5.0

func Outro(out *os.File, styles Styles, message string)

func PadLeft added in v1.5.0

func PadLeft(value string, width int) string

func PadRight added in v1.5.0

func PadRight(value string, width int) string

func Warn added in v1.5.0

func Warn(out *os.File, styles Styles, message string)

func WriteLine

func WriteLine(out *os.File, v ...any)

Types

type Block

type Block struct {
	Name   string
	Values []BlockValue
}

func (Block) Output

func (b Block) Output(out *os.File, styles Styles, indentation int, final bool)

type BlockValue

type BlockValue struct {
	Key   string
	Value any
}

type Styles

type Styles struct {
	Bold      lipgloss.Style
	Muted     lipgloss.Style
	Subtle    lipgloss.Style
	Accent    lipgloss.Style
	Secondary lipgloss.Style
	Warm      lipgloss.Style

	Frame lipgloss.Style
	Title lipgloss.Style
	Key   lipgloss.Style
	Value lipgloss.Style
	Empty lipgloss.Style
	Bool  lipgloss.Style
	Num   lipgloss.Style

	Success lipgloss.Style
	Warning lipgloss.Style
	Error   lipgloss.Style

	BlockData lipgloss.Style

	SynthientColor lipgloss.Style
	// contains filtered or unexported fields
}

func NewStyles

func NewStyles(out *os.File) Styles

Jump to

Keyboard shortcuts

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