@salesforce/sf-plugins-core
    Preparing search index...

    Class Spinner

    This class is a light wrapper around ux.action that allows us to automatically suppress any actions if --json flag is present.

    Hierarchy (View Summary)

    Index
    outputEnabled: boolean
    • get status(): string | undefined

      Get the status of the current spinner.

      Returns string | undefined

    • set status(status: string | undefined): void

      Set the status of the current spinner.

      Parameters

      • status: string | undefined

      Returns void

    • Pause the spinner on the console.

      Parameters

      • fn: () => unknown
      • Optionalicon: string

      Returns void

    • Start a spinner on the console.

      Parameters

      • action: string
      • Optionalstatus: string
      • Optionalopts: { stdout?: boolean }

      Returns void

    • Stop the spinner on the console.

      Parameters

      • Optionalmsg: string

      Returns void