ryuu
Version:
Domo App Dev Studio CLI, The main tool used to create, edit, and publish app designs to Domo
29 lines • 1.1 kB
JavaScript
;
/**
* This executable will take care of capturing user input,
* passing data on to the domo lib and informing user of results.
* First it will check for supported Node versions.
*
*/
Object.defineProperty(exports, "__esModule", { value: true });
var path = require("path");
var commander_1 = require("commander");
var glob = require("glob");
var package_json_1 = require("../package.json");
var systemCheck_1 = require("../util/systemCheck");
(0, systemCheck_1.checkSystemRequirements)();
commander_1.program
.version(package_json_1.version, '-v, --version')
.option('-s, --ssl', 'disable SSL')
.hook('preAction', function (preliminaryCommand) {
if (preliminaryCommand.opts().ssl)
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
})
.option('-m, --manifest <id>', 'supply a filepath to a manifest');
// import all commands
glob.sync(path.resolve(__dirname + '/../commands/*.js')).forEach(function (command) {
require(command)(commander_1.program);
});
commander_1.program.parse(process.argv);
//# sourceMappingURL=domo.js.map