bin/webgme
#!/usr/bin/env node
var Command = require('commander').Command,
program = new Command(),
version = require('../package.json').version;
/* * * * * * * * * * Components * * * * * * * * * */
var descs = {
mount: 'Mount REST router at the given endpoint',
init: 'Initialize a new WebGME app',
import: 'Import a WebGME component from another project',
info: 'Get installation info',
refresh: 'Regenerate WebGME configuration',
dockerize: 'Generate Dockerfiles and configuration for a dockerized deployment',
ls: 'List all WebGME components',
rm: 'Remove a WebGME component',
new: 'Create a new WebGME component',
start:'Start the existing WebGME app'
},
args = {
mount: '<router> <endpoint>',
init: '[name]',
info: undefined,
refresh: undefined,
start: undefined,
dockerize: undefined
};
program
.version('v'+version)
require('../src/BinUtils')
.createSubCommands(
__dirname,
'<component>',
'<%= name[0].toUpperCase() + name.substring(1) %> a WebGME component',
{
program: program,
descs: descs,
args: args,
explicit: true
}
);