Documentation
¶
Index ¶
- func FormatControlPlaneStageLine(stage string) string
- func FormatDeployStageLine(stage string) string
- func FormatRuntimeClassStageLine(stage string) string
- func IsInteractive(w io.Writer, opts Options) bool
- type Options
- type Spinner
- type UI
- func (u *UI) ClearProgressLine()
- func (u *UI) Interactive() bool
- func (u *UI) PauseSpinner(active *Spinner) bool
- func (u *UI) StartSpinner(message string) *Spinner
- func (u *UI) StopSpinner()
- func (u *UI) WriteError(message string)
- func (u *UI) WritePercent(label string, percent int, done bool)
- func (u *UI) WritePlain(text string)
- func (u *UI) WriteStageLine(line string)
- func (u *UI) WriteSuccess(message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatControlPlaneStageLine ¶
FormatControlPlaneStageLine formats control plane deploy apply progress text.
func FormatDeployStageLine ¶
FormatDeployStageLine formats deploy apply progress text for a stage label.
func FormatRuntimeClassStageLine ¶
FormatRuntimeClassStageLine formats runtimeclass apply progress text.
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner wraps a single stderr spinner tied to this UI instance.
type UI ¶
UI centralizes CLI user-facing output on stderr and data on stdout.
func NewWithWriters ¶
NewWithWriters creates a UI for tests with explicit writers.
func (*UI) ClearProgressLine ¶
func (u *UI) ClearProgressLine()
ClearProgressLine clears the current stderr progress line.
func (*UI) Interactive ¶
Interactive reports whether spinner/progress overwrite mode is active.
func (*UI) PauseSpinner ¶
PauseSpinner stops the spinner temporarily and returns whether it was running.
func (*UI) StartSpinner ¶
StartSpinner begins an interactive spinner or prints a plain line in quiet/non-interactive mode.
func (*UI) StopSpinner ¶
func (u *UI) StopSpinner()
StopSpinner stops the active spinner and clears the progress line.
func (*UI) WriteError ¶
WriteError prints an error marker on stderr and stops any spinner.
func (*UI) WritePercent ¶
WritePercent writes a throttled percent progress bar on stderr.
func (*UI) WritePlain ¶
WritePlain writes unstyled text to stderr.
func (*UI) WriteStageLine ¶
WriteStageLine updates deploy-style stage progress on stderr.
func (*UI) WriteSuccess ¶
WriteSuccess prints a success marker on stderr and stops any spinner.