UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

26 lines (21 loc) 446 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.log = undefined; var _child_process = require('child_process'); exports.log = log; /** * Asynchronously gets the git log output */ function log(repoPath, done) { (0, _child_process.exec)('git log', { maxBuffer: Infinity, cwd: repoPath }, function (error, stdout, stderr) { if (error) { throw error; } done(stdout); }); }