globals

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT, + 1 more Imports: 4 Imported by: 80

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TitleStyle can be used to format a string; suitable for titles
	TitleStyle = ansi.ColorFunc("default+bh")

	// PrimaryTextStyle can be used to format a string; suitable for emphasis
	PrimaryTextStyle = ansi.ColorFunc("blue+b")

	// CTATextStyle can be used to format a string; important text
	CTATextStyle = ansi.ColorFunc("red+b:white+h") // Call To Action

	// ErrorTextStyle can be used to format a string; important text
	ErrorTextStyle = ansi.ColorFunc("red+b")

	// WarningStyle is used to format strings to indicate a warning
	WarningStyle = ansi.ColorFunc("yellow+bh")

	// SuccessStyle is used to format strings to indicate a successfull operation
	SuccessStyle = ansi.ColorFunc("green+bh")
)

Functions

func BooleanStyle

func BooleanStyle(in string) string

BooleanStyle colors instances of 'true' & 'false' blue & red respectively

func BooleanStyleP

func BooleanStyleP(in bool) string

BooleanStyleP is like BooleanStyle except takes a boolean as it's argument

func FormatHookLists

func FormatHookLists(hookLists []types.HookList) string

FormatHookLists formats the Check Hook struct into a string mapping

Types

This section is empty.

Jump to

Keyboard shortcuts

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