ui

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(s string) bool

Confirm shows a question and returns true of false whether the user accepted it or not.

func SelectEmail

func SelectEmail(allEmails []string) []string

SelectEmail shows a CLI select interface. The user has a chance to select the given emails from a predefined list (allEmails). At least one option must be selected The returning value is the selected emails.

Types

type ProgressBar

type ProgressBar interface {
	Inc()
	Finish()
	SetCurrent(value int)
}

func NewProgressBar

func NewProgressBar(count int) ProgressBar

A simple progress bar CLI implementation

func NilProgressBar

func NilProgressBar() ProgressBar

Jump to

Keyboard shortcuts

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