Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearLines ¶
ClearLines writes ANSI escape sequences that move the cursor up n lines and clear each one so the next render overwrites the previous output in-place. When n is 0 this is a no-op.
func RenderInitProgress ¶
func RenderInitProgress(states []models.InitScriptState, spinner string, useAnsi bool, showHeader bool) []string
RenderInitProgress formats a list of init script states into display lines. spinner is the current spinner character used for running scripts (pass "" for a final/static render). useAnsi controls whether ANSI colour codes are included. showHeader prepends a "Running init scripts..." header line when true. Each returned string is one line without a trailing newline.
func SpinnerFrame ¶
SpinnerFrame returns the spinner character for the given tick index.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.