ui

package
v0.0.0-...-3c36fa0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultThemeName string = "mono"

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

func Err

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

func Init

func Init()

func Log

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

func Out

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

func OutBold

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

func Quiet

func Quiet()

func ReadInput

func ReadInput(prompt string) (str string, err error)

func ReadSecureInput

func ReadSecureInput(prompt string) (str string, err error)

func Run

func Run(done chan error)

func SetLog

func SetLog(logfile string)

func SetTheme

func SetTheme(themeName string) (err error)

Types

type UIConfig

type UIConfig struct {
	Text    string
	AltText string
	Bg      string
	AltBg   string
	Error   string
}

type UITheme

type UITheme struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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