termenvx

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorsMapping = map[string]termenv.Color{

	"Black":   termenv.ANSIBlack,
	"Red":     termenv.ANSIRed,
	"Green":   termenv.ANSIGreen,
	"Yellow":  termenv.ANSIYellow,
	"Blue":    termenv.ANSIBlue,
	"Magenta": termenv.ANSIMagenta,
	"Cyan":    termenv.ANSICyan,
	"White":   termenv.ANSIWhite,
	"Gray":    termenv.RGBColor("#93a1a1"),
}

Functions

func ColorOptionsTermenv

func ColorOptionsTermenv(style termenv.Style, opt string) termenv.Style

func ColorProfile

func ColorProfile() termenv.Profile

func ColorTermenv

func ColorTermenv(p termenv.Profile, in string) termenv.Color

func TemplateFuncs

func TemplateFuncs(p termenv.Profile) template.FuncMap

TemplateFuncs contains a few useful template helpers. Copied from: https://github.com/muesli/termenv/blob/v0.12.0/templatehelper.go Applied adjustments from: https://github.com/muesli/termenv/pull/14

Types

This section is empty.

Jump to

Keyboard shortcuts

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