prompt

package
v0.0.0-...-538eb4e Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Info - info color
	Info = Teal
	// Warn - warning color
	Warn = Yellow
	// Error - error color
	Error = Red
	// Fatal - fatal color
	Fatal = Red
)
View Source
var (
	// Red - red color
	Red = Color("\033[1;31m%s\033[0m")
	// Green - green color
	Green = Color("\033[1;32m%s\033[0m")
	// Yellow - yellow color
	Yellow = Color("\033[1;33m%s\033[0m")
	// Purple - purple color
	Purple = Color("\033[1;34m%s\033[0m")
	// Magenta - magenta color
	Magenta = Color("\033[1;35m%s\033[0m")
	// Teal - teal color
	Teal = Color("\033[1;36m%s\033[0m")
	// White - wtite color
	White = Color("\033[1;37m%s\033[0m")
	// Grey - grey color
	Grey = Color("\033[1;30m%s\033[0m")
	// GreenGrey - green foreground, grey background
	GreenGrey = Color("\033[100;32m%s\033[0m")
)

Functions

func Color

func Color(colorString string) func(...interface{}) string

Color - return color

func PrintClusterMenu

func PrintClusterMenu() (int, string, error)

PrintClusterMenu - print cluster menu

func PrintMainMenu

func PrintMainMenu() (int, string, error)

PrintMainMenu - print main menu

Types

This section is empty.

Jump to

Keyboard shortcuts

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