Documentation ¶
Overview ¶
Package terminal is for terminal outputting
Index ¶
- Variables
- func DisplayBrevLogo(t *Terminal)
- func DisplayGatewayAlreadyInstalledInstructions(t *Terminal)
- func DisplaySSHKeys(t *Terminal, publicKey string)
- func DisplayToolboxInstalledInstructions(t *Terminal)
- func DisplayVSCodeInstructions(t *Terminal)
- func InstallVSCodeExtension(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) Errprintf(err error, format string, a ...interface{})
- func (t *Terminal) NewProgressBar(description string, onComplete func()) *ProgressBar
- func (t *Terminal) NewSpinner() *spinner.Spinner
- func (t *Terminal) Print(a string)
- func (t *Terminal) Printf(format string, a ...interface{})
- func (t *Terminal) SetVerbose(verbose bool)
- 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 DisplayGatewayAlreadyInstalledInstructions ¶ added in v0.4.0
func DisplayGatewayAlreadyInstalledInstructions(t *Terminal)
func DisplaySSHKeys ¶ added in v0.4.0
func DisplayToolboxInstalledInstructions ¶ added in v0.4.0
func DisplayToolboxInstalledInstructions(t *Terminal)
func DisplayVSCodeInstructions ¶ added in v0.4.0
func DisplayVSCodeInstructions(t *Terminal)
func InstallVSCodeExtension ¶ added in v0.4.0
func InstallVSCodeExtension(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 }
func (*ProgressBar) AdvanceTo ¶
func (bar *ProgressBar) AdvanceTo(percentage int)
func (*ProgressBar) Describe ¶
func (bar *ProgressBar) Describe(text string)
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) NewProgressBar ¶
func (t *Terminal) NewProgressBar(description string, onComplete func()) *ProgressBar
func (*Terminal) NewSpinner ¶ added in v0.3.0
func (*Terminal) SetVerbose ¶
Click to show internal directories.
Click to hide internal directories.