17 lines
396 B
JavaScript
17 lines
396 B
JavaScript
|
|
var path = require("path");
|
||
|
|
var Commoner = require("./lib/commoner").Commoner;
|
||
|
|
exports.Commoner = Commoner;
|
||
|
|
|
||
|
|
function defCallback(name) {
|
||
|
|
exports[name] = function() {
|
||
|
|
var commoner = new Commoner;
|
||
|
|
commoner[name].apply(commoner, arguments);
|
||
|
|
commoner.cliBuildP();
|
||
|
|
return commoner;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
defCallback("version");
|
||
|
|
defCallback("resolve");
|
||
|
|
defCallback("process");
|