Documentation
¶
Index ¶
- Variables
- func GetPWAQuote() (string, error)
- func GetRandomQuote() (string, error)
- func GetVCSQuote() (string, error)
- func GetWebsiteQuote() (string, error)
- func NewProgressBar(total int, description string) *progressbar.ProgressBar
- func NewProgressWriter(bar *progressbar.ProgressBar) *progressWriter
- func PrintQuote()
- type NonInteractivePrompter
- type Quotes
Constants ¶
This section is empty.
Variables ¶
View Source
var QuotesJSON embed.FS
Functions ¶
func GetPWAQuote ¶
func GetRandomQuote ¶
func GetVCSQuote ¶
func GetWebsiteQuote ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.