prettyprint

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IconComplete is the icon for a completed task.
	IconComplete = "[✓] "

	// IconAlert is the icon for an alert.
	IconAlert = "[!] "

	// IconFailed is the icon for a failed task.
	IconFailed = "[✗] "

	// IconInfo is the icon for an informational message.
	IconInfo = "[i] "
)

Functions

func Alert

func Alert(msg string) string

Alert returns a string with a yellow exclamation icon and the given message.

func Black

func Black(a ...any) string

Black formats using the default formats for its operands and returns the resulting string with a black foreground. Spaces are added between operands when neither is a string.

func Blackf

func Blackf(format string, a ...any) string

Blackf formats according to a format specifier and returns the resulting string with a black foreground.

func Blue

func Blue(a ...any) string

Blue formats using the default formats for its operands and returns the resulting string with a blue foreground. Spaces are added between operands when neither is a string.

func Bluef

func Bluef(format string, a ...any) string

Bluef formats according to a format specifier and returns the resulting string with a blue foreground.

func Complete

func Complete(msg string) string

Complete returns a string with a green checkmark icon and the given message.

func Cyan

func Cyan(a ...any) string

Cyan formats using the default formats for its operands and returns the resulting string with a cyan foreground. Spaces are added between operands when neither is a string.

func Cyanf

func Cyanf(format string, a ...any) string

Cyanf formats according to a format specifier and returns the resulting string with a cyan foreground.

func Fail

func Fail(msg string) string

Fail returns a string with a red X icon and the given message.

func Green

func Green(a ...any) string

Green formats using the default formats for its operands and returns the resulting string with a green foreground. Spaces are added between operands when neither is a string.

func Greenf

func Greenf(format string, a ...any) string

Greenf formats according to a format specifier and returns the resulting string with a green foreground.

func Info

func Info(msg string) string

Info returns a string with a cyan info icon and the given message.

func Magenta

func Magenta(a ...any) string

Magenta formats using the default formats for its operands and returns the resulting string with a magenta foreground. Spaces are added between operands when neither is a string.

func Magentaf

func Magentaf(format string, a ...any) string

Magentaf formats according to a format specifier and returns the resulting string with a magenta foreground.

func Red

func Red(a ...any) string

Red formats using the default formats for its operands and returns the resulting string with a red foreground. Spaces are added between operands when neither is a string.

func RedAlert

func RedAlert(msg string) string

RedAlert returns a string with a red exclamation icon and the given message.

func Redf

func Redf(format string, a ...any) string

Redf formats according to a format specifier and returns the resulting string with a red foreground.

func ThemeMinno

func ThemeMinno() *huh.Theme

ThemeMinno returns a new theme based on the Minno color scheme.

func Var

func Var(variable string, value string) string

Var returns a string with the given variable and value.

func VarQuote

func VarQuote(variable string, value string) string

VarQuote returns a string with the given variable and value, quoted.

func White

func White(a ...any) string

White formats using the default formats for its operands and returns the resulting string with a white foreground. Spaces are added between operands when neither is a string.

func Whitef

func Whitef(format string, a ...any) string

Whitef formats according to a format specifier and returns the resulting string with a white foreground.

func Yellow

func Yellow(a ...any) string

Yellow formats using the default formats for its operands and returns the resulting string with a yellow foreground. Spaces are added between operands when neither is a string.

func Yellowf

func Yellowf(format string, a ...any) string

Yellowf formats according to a format specifier and returns the resulting string with a yellow foreground.

Types

This section is empty.

Jump to

Keyboard shortcuts

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