mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
15 lines
399 B
JavaScript
15 lines
399 B
JavaScript
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);
|
|
});
|
|
|