ui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: EUPL-1.2 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QuotesJSON embed.FS

Functions

func GetPWAQuote

func GetPWAQuote() (string, error)

func GetRandomQuote

func GetRandomQuote() (string, error)

func GetVCSQuote

func GetVCSQuote() (string, error)

func GetWebsiteQuote

func GetWebsiteQuote() (string, error)

func NewProgressBar

func NewProgressBar(total int, description string) *progressbar.ProgressBar

NewProgressBar creates a new progress bar with the specified total and description.

func NewProgressWriter

func NewProgressWriter(bar *progressbar.ProgressBar) *progressWriter

func PrintQuote

func PrintQuote()

Types

type NonInteractivePrompter

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

func NewNonInteractivePrompter

func NewNonInteractivePrompter(quoteFunc func() (string, error)) *NonInteractivePrompter

func (*NonInteractivePrompter) IsInteractive

func (p *NonInteractivePrompter) IsInteractive() bool

func (*NonInteractivePrompter) Start

func (p *NonInteractivePrompter) Start()

func (*NonInteractivePrompter) Stop

func (p *NonInteractivePrompter) Stop()

type Quotes

type Quotes struct {
	InitWorkAssimilate        []string `json:"init_work_assimilate"`
	EncryptionServiceMessages []string `json:"encryption_service_messages"`
	CodeRelatedShort          []string `json:"code_related_short"`
	VCSProcessing             []string `json:"vcs_processing"`
	PWAProcessing             []string `json:"pwa_processing"`
	CodeRelatedLong           []string `json:"code_related_long"`
	ImageRelated              struct {
		PNG  string `json:"png"`
		JPG  string `json:"jpg"`
		SVG  string `json:"svg"`
		WEBP string `json:"webp"`
		HEIC string `json:"heic"`
		RAW  string `json:"raw"`
		ICO  string `json:"ico"`
		AVIF string `json:"avif"`
		TIFF string `json:"tiff"`
		GIF  string `json:"gif"`
	} `json:"image_related"`
}

Jump to

Keyboard shortcuts

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