Ghost/ghost/pretty-cli/ui.js
Hannah Wolfe dfe1610a47 🎨 Move Slimer UI into Pretty CLI
- We'll want these log utils in other cli tools
2018-10-04 13:30:59 +01:00

16 lines
386 B
JavaScript

const chalk = require('chalk');
const log = (...args) => console.log(...args); // eslint-disable-line no-console
module.exports.log = log;
module.exports.log.error = (...args) => {
log(chalk.red('error'), ...args);
};
module.exports.log.info = (...args) => {
log(chalk.cyan('info'), ...args);
};
module.exports.log.ok = (...args) => {
log(chalk.green('ok'), ...args);
};