Represents a spinner for the CLI

interface ICliSpinner {
    hide: () => void;
    isRunning: boolean;
    setText: (text: string) => void;
    show: (text?: string) => void;
}

Hierarchy (View Summary)

Properties

hide: () => void

Hide the progress bar

isRunning: boolean

Indicates if the progress bar is running

setText: (text: string) => void

Set the text of the spinner

Type declaration

    • (text: string): void
    • Parameters

      • text: string

        The text to set

      Returns void

show: (text?: string) => void

Show the progress bar