Documentation
¶
Index ¶
- Constants
- func HighlightCode(code string, language string, syntaxTheme string) (string, error)
- func NewAtmosHuhTheme() *huh.Theme
- func PrintStyledText(text string) error
- func PrintStyledTextToSpecifiedOutput(out io.Writer, text string) error
- func RenderMarkdown(markdownText string, style string) (string, error)
- func WriteJSON(v interface{}) error
- func WriteYAML(v interface{}) error
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 ¶
HighlightCode returns a syntax highlighted code for the specified language
func NewAtmosHuhTheme ¶ added in v1.194.0
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
PrintStyledText prints a styled text to the terminal.
func PrintStyledTextToSpecifiedOutput ¶ added in v1.182.0
func RenderMarkdown ¶ added in v1.135.0
RenderMarkdown renders markdown text with terminal styling
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.