cartodb-4.42/lib/assets/javascripts/cdb/scripts/get.js
2024-04-06 05:25:13 +00:00

18 lines
453 B
JavaScript

var package_ = require('../package')
if(process.argv.length >= 3) {
if(process.argv[2] === 'version') {
console.log(package_.version);
} else if(process.argv[2] === 'sha') {
require('git-rev').long(function (sha) {
console.log(sha);
})
} else if(process.argv[2] === 'header') {
require('git-rev').long(function (sha) {
console.log("// version: " + package_.version);
console.log("// sha: " + sha);
})
}
}