mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-05 04:07:23 +02:00
Call main... main!
This commit is contained in:
parent
0e5d0c53d2
commit
a1e51c41ee
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ const fs = require('fs');
|
||||||
const paths = require('path');
|
const paths = require('path');
|
||||||
|
|
||||||
// our main entry point
|
// our main entry point
|
||||||
exports.bbsMain = bbsMain;
|
exports.main = main;
|
||||||
|
|
||||||
// object with various services we want to de-init/shutdown cleanly if possible
|
// object with various services we want to de-init/shutdown cleanly if possible
|
||||||
const initServices = {};
|
const initServices = {};
|
||||||
|
@ -42,7 +42,7 @@ function printHelpAndExit() {
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function bbsMain() {
|
function main() {
|
||||||
async.waterfall(
|
async.waterfall(
|
||||||
[
|
[
|
||||||
function processArgs(callback) {
|
function processArgs(callback) {
|
||||||
|
|
2
main.js
2
main.js
|
@ -9,4 +9,4 @@
|
||||||
If this file does not run directly, ensure it's executable:
|
If this file does not run directly, ensure it's executable:
|
||||||
> chmod u+x main.js
|
> chmod u+x main.js
|
||||||
*/
|
*/
|
||||||
require('./core/bbs.js').bbsMain();
|
require('./core/bbs.js').main();
|
Loading…
Add table
Add a link
Reference in a new issue