mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
* Add oputil import support for *.NA and AREAS.BBS
This commit is contained in:
parent
5c58fd2cfa
commit
0ca2ca9bf2
8 changed files with 355 additions and 37 deletions
|
@ -12,6 +12,7 @@ const async = require('async');
|
|||
|
||||
exports.printUsageAndSetExitCode = printUsageAndSetExitCode;
|
||||
exports.getDefaultConfigPath = getDefaultConfigPath;
|
||||
exports.getConfigPath = getConfigPath;
|
||||
exports.initConfigAndDatabases = initConfigAndDatabases;
|
||||
exports.getAreaAndStorage = getAreaAndStorage;
|
||||
|
||||
|
@ -40,10 +41,14 @@ function getDefaultConfigPath() {
|
|||
return resolvePath('~/.config/enigma-bbs/config.hjson');
|
||||
}
|
||||
|
||||
function initConfig(cb) {
|
||||
const configPath = argv.config ? argv.config : config.getDefaultPath();
|
||||
function getConfigPath() {
|
||||
return argv.config ? argv.config : config.getDefaultPath();
|
||||
}
|
||||
|
||||
config.init(configPath, cb);
|
||||
function initConfig(cb) {
|
||||
const configPath = getConfigPath();
|
||||
|
||||
config.init(configPath, { keepWsc : true }, cb);
|
||||
}
|
||||
|
||||
function initConfigAndDatabases(cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue