UNPKG

panda-mango

Version:

Automated Deployment of Cloud Platform SaaS Solutions

32 lines (24 loc) 954 B
// Generated by CoffeeScript 1.9.2 (function() { var call, join, program, read, ref, run; join = require("path").join; program = require("commander"); ref = require("fairmont"), call = ref.call, read = ref.read; require("./index"); run = require("panda-9000").run; call(function*() { var version; version = JSON.parse((yield read(join(__dirname, "..", "package.json")))).version; program.version(version); program.command('serve').description('run a Web server to test your API endpoints').action(function() { return run("serve"); }); program.command('build').description('compile the API, Lambdas, and resources to prepare for publishing.').action(function() { return run("build"); }); program.command('publish').description('deploy API, Lambdas to AWS infrastructure').action(function() { return run("publish"); }); return program.parse(process.argv); }); }).call(this);