Documentation ¶
Overview ¶
Package terminal is for terminal outputting
Index ¶
- Variables
- func DisplayBrevLogo(t *Terminal)
- func PromptGetInput(pc PromptContent) string
- func PromptSelectInput(pc PromptSelectContent) string
- type ProgressBar
- type PromptContent
- type PromptSelectContent
- type Terminal
- func (t *Terminal) Eprint(a string)
- func (t *Terminal) Eprintf(format string, a ...interface{})
- func (t *Terminal) Errprint(err error, a string)
- func (t *Terminal) NewSpinner() *spinner.Spinner
- func (t *Terminal) Print(a string)
- func (t *Terminal) Vprint(a string)
- func (t *Terminal) Vprintf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ProgressBarMax = 100
Functions ¶
func DisplayBrevLogo ¶ added in v0.4.0
func DisplayBrevLogo(t *Terminal)
func PromptGetInput ¶ added in v0.4.0
func PromptGetInput(pc PromptContent) string
func PromptSelectInput ¶ added in v0.4.0
func PromptSelectInput(pc PromptSelectContent) string
Types ¶
type ProgressBar ¶
type ProgressBar struct { Bar *progressbar.ProgressBar CurrPercentage int }
type PromptContent ¶ added in v0.4.0
type PromptSelectContent ¶ added in v0.4.0
type Terminal ¶
type Terminal struct { Green func(format string, a ...interface{}) string Yellow func(format string, a ...interface{}) string Red func(format string, a ...interface{}) string Blue func(format string, a ...interface{}) string White func(format string, a ...interface{}) string Bar ProgressBar Spinner *spinner.Spinner // contains filtered or unexported fields }
func (*Terminal) NewSpinner ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.