UNPKG

relion

Version:

Release workflow helper for Node.js projects.

24 lines (22 loc) 453 B
import chalk from 'chalk'; import figures from 'figures'; import util from 'util'; export default function (argv, msg, args, figure) { const defaultFigure = argv.dryRun ? chalk.yellow(figures.tick) : chalk.green(figures.tick); if (!argv.silent) { console.info( (figure || defaultFigure) + ' ' + util.format.apply( util, [msg].concat( args.map(function (arg) { return chalk.bold(arg); }), ), ), ); } }