How to use the buntstift.buntstift.line 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 / bin / roboter.js View on Github external
const exit = function (ex) {
  buntstift.line();

  if (!ex) {
    buntstift.exit(0);

    return;
  }

  if (ex.message) {
    buntstift.verbose(ex.message);
  }

  if (ex.stack) {
    buntstift.verbose(ex.stack);
  }

  buntstift.exit(1);
github thenativeweb / roboter / lib / cli / ui / printTaskHeader.js View on Github external
const printTaskHeader = function (name) {
  if (!name) {
    throw new Error('Name is missing.');
  }

  buntstift.line();
  buntstift.info(`Running ${name}...`, { prefix: '▸' });
};
github thenativeweb / roboter / lib / cli / ui / printTaskSuccess.js View on Github external
const printTaskSuccess = function (message) {
  if (!message) {
    throw new Error('Message is missing.');
  }

  buntstift.line();
  buntstift.success(message);
};
github thenativeweb / roboter / lib / cli / ui / line.js View on Github external
const line = function () {
  buntstift.line();
};
github thenativeweb / roboter / lib / cli / ui / printTaskOmission.js View on Github external
const printTaskOmission = function (reason) {
  if (!reason) {
    throw new Error('Reason is missing.');
  }

  buntstift.line();
  buntstift.warn(reason);
};