bw-cli
Version:
The Brightwork (bw) command line deployment tool. Build & deploy serverless RESTful APIs in minutes.
19 lines (14 loc) • 483 B
JavaScript
require('./env')();
var program = require('commander');
var path = require('path');
var fs = require('fs');
var manifestPath = path.join(global.workingPath, 'manifest.yml');
program
.parse(process.argv);
try {
var manifest = fs.readFileSync(path.join(global.appPath, 'manifest.yml'));
fs.writeFileSync(manifestPath, manifest, 'utf8', { flag: 'w+' });
console.log(`Successfully created default application ${manifestPath}`);
} catch (err) {
printError(err);
}