How to use the buntstift.buntstift.wait function in buntstift

To help you get started, we’ve selected a few buntstift examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thenativeweb / roboter / lib / cli / showProgress.js View on Github external
if (!progress.message) {
      throw new Error('Message is missing.');
    }

    const type = progress.type || 'verbose';

    const spinnerRequiresPause = internalStopWaiting && (type !== 'verbose' || verbose);

    if (spinnerRequiresPause) {
      internalStopWaiting();
    }

    buntstift[type](progress.message.trim());

    if (spinnerRequiresPause) {
      internalStopWaiting = buntstift.wait();
    }
  };
};
github thenativeweb / roboter / lib / cli / ui / progress.js View on Github external
show () {
    stop = buntstift.wait();
  },
  hide () {