Documentation
¶
Index ¶
- func RenderMessage(e output.MessageEvent) string
- type ErrorDisplay
- type Header
- type InputPrompt
- type Spinner
- func (s Spinner) HandleMinDurationElapsed() Spinner
- func (s Spinner) PendingStop() bool
- func (s Spinner) SetText(text string) Spinner
- func (s Spinner) Start(text string, minDuration time.Duration) Spinner
- func (s Spinner) Stop() (Spinner, tea.Cmd)
- func (s Spinner) Tick() tea.Cmd
- func (s Spinner) Update(msg tea.Msg) (Spinner, tea.Cmd)
- func (s Spinner) View() string
- func (s Spinner) Visible() bool
- type SpinnerMinDurationElapsedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderMessage ¶ added in v0.2.0
func RenderMessage(e output.MessageEvent) string
Types ¶
type ErrorDisplay ¶ added in v0.2.0
type ErrorDisplay struct {
// contains filtered or unexported fields
}
func NewErrorDisplay ¶ added in v0.2.0
func NewErrorDisplay() ErrorDisplay
func (ErrorDisplay) Show ¶ added in v0.2.0
func (e ErrorDisplay) Show(event output.ErrorEvent) ErrorDisplay
func (ErrorDisplay) View ¶ added in v0.2.0
func (e ErrorDisplay) View(maxWidth int) string
func (ErrorDisplay) Visible ¶ added in v0.2.0
func (e ErrorDisplay) Visible() bool
type InputPrompt ¶
type InputPrompt struct {
// contains filtered or unexported fields
}
func NewInputPrompt ¶
func NewInputPrompt() InputPrompt
func (InputPrompt) Hide ¶
func (p InputPrompt) Hide() InputPrompt
func (InputPrompt) Show ¶
func (p InputPrompt) Show(prompt string, options []output.InputOption) InputPrompt
func (InputPrompt) View ¶
func (p InputPrompt) View() string
func (InputPrompt) Visible ¶
func (p InputPrompt) Visible() bool
type Spinner ¶ added in v0.2.0
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶ added in v0.2.0
func NewSpinner() Spinner
func (Spinner) HandleMinDurationElapsed ¶ added in v0.2.0
func (Spinner) PendingStop ¶ added in v0.2.0
type SpinnerMinDurationElapsedMsg ¶ added in v0.2.0
type SpinnerMinDurationElapsedMsg struct{}
Click to show internal directories.
Click to hide internal directories.