例如有下面一段代码:
var exec = require('child_process').exec;
var child = exec('git status');
child.stdout.on('data', function (data) {
console.log(data);
});
例如有下面一段代码:
var exec = require('child_process').exec;
var child = exec('git status');
child.stdout.on('data', function (data) {
console.log(data);
});