Static
startStart a named multi-spinner task with the specified options. Used for complex task orchestration with Listr2.
Unique identifier for this spinner
Spinner configuration options
Listr instance for the spinner
Static
stopStop a named multi-spinner without completion message.
Unique identifier of the spinner to stop
Static
updateUpdate the display text of an active spinner.
Unique identifier of the spinner
New text to display
Static
succeedComplete a multi-spinner with success status.
Unique identifier of the spinner
Optional
text: stringOptional success message
The completion text or undefined
Static
failComplete a multi-spinner with failure status.
Unique identifier of the spinner
Optional
text: stringOptional failure message
The completion text or undefined
Static
infoComplete multi-spinner task with info (alias for succeed)
Optional
text: stringStatic
getGet a named task runner by key
Static
stopStop all active multi-spinner tasks
Static
getGet all active task keys
Static
getGet currently active spinner (rotates automatically)
Static
supportsCheck if spinners are supported in the current environment.
True if spinners can be displayed, false otherwise
Static
getStatic
pausePause/Resume methods (listr2 handles this automatically)
Static
resume
Low-level spinner management utilities using listr2.
Provides direct control over spinners for advanced use cases. Most users should use the Logger class spinner methods instead.
Example: Basic Usage
Example: Multiple Spinners