Cloud Elements CMTool
This is the Cloud Elements CM tool, which is used to connect with and integrate the various CM applications used by Cloud Elements, such as Git and Pivotal Tracker.
Install it globally:
$ npm install -g cloudelements_cmtool
Run it like this
$ cmtool <command> [parameters]
For example,
$ cmtool release-notes 1.10 1.11
You can use it in your code, too.
var cmtool = require('cloudelements_cmtool');
var git = new cmtool.Git;
var pivotal = new cmtool.Pivotal('my-pivotal-token');
var cart = new cmtool.Cart(pivotal, git);
process.chdir('path/to/git/repo');
cart.changeLog('1.10', '1.11', function(err, stories) {
console.log("err", err);
console.log("stories", stories);
});
git.longLog('patch-1.10.6', function(err, entry, done){
if (err != null) {
console.log("err", err);
} else if (done) {
console.log("done");
} else {
console.log("found commit with hash", entry.hash);
}
});