sweet command line util to make test cases

This commit is contained in:
Peter Cottle 2013-10-15 17:00:28 -07:00
parent 15e8877e95
commit bf48e54bbe
2 changed files with 15 additions and 2 deletions

15
spec/create.js Normal file
View file

@ -0,0 +1,15 @@
var TreeCompare = require('../src/js/git/treeCompare').TreeCompare;
var HeadlessGit = require('../src/js/git/headless').HeadlessGit;
var prompt = require('prompt');
prompt.start();
prompt.get(['command'], function(err, result) {
var headless = new HeadlessGit();
headless.sendCommand(result.command);
setTimeout(function() {
console.log(headless.gitEngine.printTree());
}, 100);
});