Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "cli/logIndicator"

Index

Variables

Functions

Variables

Const cache

cache: object

Holds spinner instances

Type declaration

  • Optional spinner?: ora.Ora

Functions

Const create

  • create(text: string): void
  • Creates a new spinner instance with the specified message

    Parameters

    • text: string

      Output display message

    Returns void

Const end

  • end(message?: string, isError?: boolean): void
  • Terminates the current spinner with the specified output message

    Parameters

    • Default value message: string = ""

      Output message

    • Default value isError: boolean = false

      Renders output as error toggle

    Returns void

Const fail

  • fail(message: string): void
  • Terminates the current spinner as an error with output message

    Parameters

    • message: string

      Spinner message.

    Returns void

Const update

  • update(text: string): void
  • Updates the text of the current spinner

    Parameters

    • text: string

      CLI output text to display

    Returns void

Generated using TypeDoc