ui

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QuitReasonSuccess = iota
	QuitReasonError
	QuitReasonInterrupt
)

Variables

View Source
var DotStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#299E9C"))
View Source
var HelpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#626262")).Render
View Source
var TitleStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#B24652"))

Functions

func Progress

func Progress(title string, length int, updates chan bool, padding int, clear bool, headless bool) int

func Spinner

func Spinner(title string, feedbacks chan string, newline bool, headless bool)

Types

type ProgressWriter

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

func (*ProgressWriter) Incr

func (pw *ProgressWriter) Incr(val int) (int, error)

Jump to

Keyboard shortcuts

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