Documentation
¶
Index ¶
- func RenderMessage(e output.MessageEvent) string
- func RenderWrappedMessage(e output.MessageEvent, width int) string
- type ErrorDisplay
- type Header
- type InputPrompt
- type PullProgress
- func (p PullProgress) Hide() PullProgress
- func (p PullProgress) SetProgress(e output.ProgressEvent) (PullProgress, tea.Cmd)
- func (p PullProgress) Show(imageName string) PullProgress
- func (p PullProgress) Update(msg tea.Msg) (PullProgress, tea.Cmd)
- func (p PullProgress) View() string
- func (p PullProgress) Visible() bool
- 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
func RenderWrappedMessage ¶ added in v0.5.1
func RenderWrappedMessage(e output.MessageEvent, width int) 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 PullProgress ¶ added in v0.3.1
type PullProgress struct {
// contains filtered or unexported fields
}
func NewPullProgress ¶ added in v0.3.1
func NewPullProgress() PullProgress
func (PullProgress) Hide ¶ added in v0.3.1
func (p PullProgress) Hide() PullProgress
func (PullProgress) SetProgress ¶ added in v0.3.1
func (p PullProgress) SetProgress(e output.ProgressEvent) (PullProgress, tea.Cmd)
func (PullProgress) Show ¶ added in v0.3.1
func (p PullProgress) Show(imageName string) PullProgress
func (PullProgress) Update ¶ added in v0.3.1
func (p PullProgress) Update(msg tea.Msg) (PullProgress, tea.Cmd)
func (PullProgress) View ¶ added in v0.3.1
func (p PullProgress) View() string
func (PullProgress) Visible ¶ added in v0.3.1
func (p PullProgress) 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.