dbgate/packages/api/src/index.js
2020-04-10 21:21:57 +02:00

19 lines
380 B
JavaScript

// require('socket.io-client');
// "socket.io-client": "^2.3.0",
// "utf-8-validate": "^5.0.2",
// "uuid": "^3.4.0",
// "uws": "10.148.1"
const argument = process.argv[2];
if (argument && argument.endsWith('Process')) {
const proc = require('./proc');
const module = proc[argument];
module.start();
} else {
const main = require('./main');
main.start(argument);
}