src/commands/logs.js
/**
   * Show or cancel the spinner
   *
   * @param {string|null} text The text to show on the spinner (or null to stop the spinner)
   */
Show or cancel the spinner
@param {string|null} text The text to show on the spinner (or null to stop the spinner)
Show or cancel the spinner @param { string|null } text The text to show on the spinner ( or null to stop the spinner )
spinner(text) {
    if (this.spinnerInstance) {
      this.spinnerInstance.stop()
    }
    if (text === null) {
      return
    }
    this.spinnerInstance = ora({
      text,
      stream: process.stdout,
    }).start()
  }
spinner ( text ) { if ( this . spinnerInstance ) { this . spinnerInstance . stop ( ) } if ( text === null ) { return } this . spinnerInstance = ora ( { text , stream : process . stdout , } ) . start ( ) }
Show or cancel the spinner
 @param {string|null} text The text to show on the spinner (or null to stop the spinner)
Show or cancel the spinner @param { string|null } text The text to show on the spinner ( or null to stop the spinner )
// Stop any existing instance // We're done if we're trying to cancel // Re-create the spinner with the given text