utils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IconGood = promptui.IconGood
	IconWarn = promptui.IconWarn
	IconBad  = promptui.IconBad
)

Functions

func PrintError

func PrintError(errString string)

func PrintSelected

func PrintSelected(kind string, choice string) (err error)

printSelected prints in the same style as if we made a choice using selectString this is used when we determined that the user only has a single choice.

func PrintWarn

func PrintWarn(errString string)

func SelectString

func SelectString(kind string, choices []string) (choice string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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