utils

package
v1.203.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnsiRegularFont is the figurine font used for styled ASCII text.
	AnsiRegularFont = "ANSI Regular.flf"
)

Variables

This section is empty.

Functions

func HighlightCode

func HighlightCode(code string, language string, syntaxTheme string) (string, error)

HighlightCode returns a syntax highlighted code for the specified language

func NewAtmosHuhTheme added in v1.194.0

func NewAtmosHuhTheme() *huh.Theme

NewAtmosHuhTheme returns the Atmos-styled Huh theme for interactive prompts. Uses the current theme's color scheme from pkg/ui/theme for consistency.

func PrintStyledText added in v1.56.0

func PrintStyledText(text string) error

PrintStyledText prints a styled text to the terminal.

func PrintStyledTextToSpecifiedOutput added in v1.182.0

func PrintStyledTextToSpecifiedOutput(out io.Writer, text string) error

func RenderMarkdown added in v1.135.0

func RenderMarkdown(markdownText string, style string) (string, error)

RenderMarkdown renders markdown text with terminal styling

func WriteJSON added in v1.198.0

func WriteJSON(v interface{}) error

WriteJSON writes JSON to stdout (data channel). This is a convenience wrapper around data.WriteJSON().

func WriteYAML added in v1.198.0

func WriteYAML(v interface{}) error

WriteYAML writes YAML to stdout (data channel). This is a convenience wrapper around data.WriteYAML().

Types

This section is empty.

Jump to

Keyboard shortcuts

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