method PrinterService.showSpinner
PrinterService.showSpinner(message: string): Promise<void>

Display the spinner on stderr.

The spinner will be displayed as emphasised content and the message will be displayed as primary content if colorEnabled is true.

NOTE: The spinner and message will be displayed at INFO level.

NOTE: If the spinner is already displayed the message will be updated to that specified.

NOTE: If any progress bars are currently displayed they will be hidden.

Parameters

message: string

the message to output after the spinner.

Return Type

Promise<void>

Usage

import type PrinterService from ".";