Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = color.Red
Functions ¶
This section is empty.
Types ¶
type IO ¶
type IO struct {
Reader *readline.Instance
Prompt *Prompt
Spinner *Spinner
Config *IOConfig
// contains filtered or unexported fields
}
IO encapsulates input/output operations.
func (*IO) Read ¶
Read reads input from the underlying source and returns it as a string. If multiline is true, it reads all available lines; otherwise, it reads a single line.
func (*IO) SetUserPrompt ¶
func (io *IO) SetUserPrompt()
SetUserPrompt sets the terminal prompt according to the current input mode.
type Prompt ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner is a visual indicator of progress displayed in the terminal as a scrolling dot animation.
func NewSpinner ¶
NewSpinner returns a new Spinner.
Click to show internal directories.
Click to hide internal directories.