mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 22:46:17 +02:00
New Config class working quite well for system config. Menu.hjson/etc. to come
This commit is contained in:
parent
37bc2fc3aa
commit
9394730011
4 changed files with 128 additions and 266 deletions
|
@ -69,15 +69,12 @@ function main() {
|
|||
|
||||
const configOverridePath = argv.config;
|
||||
|
||||
return callback(null, configOverridePath || conf.getDefaultPath(), _.isString(configOverridePath));
|
||||
return callback(null, configOverridePath || conf.Config.getDefaultPath(), _.isString(configOverridePath));
|
||||
},
|
||||
function initConfig(configPath, configPathSupplied, callback) {
|
||||
const configFile = configPath + 'config.hjson';
|
||||
conf.Config.create(configFile, {}, err => {
|
||||
console.log(err);
|
||||
});
|
||||
conf.init(resolvePath(configFile), function configInit(err) {
|
||||
|
||||
conf.Config.create(resolvePath(configFile), err => {
|
||||
//
|
||||
// If the user supplied a path and we can't read/parse it
|
||||
// then it's a fatal error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue