Initial WIP on better 'oputil config new' for testing

This commit is contained in:
Bryan Ashby 2018-11-07 20:24:05 -07:00
parent 7d74556868
commit 93305d44fc
3 changed files with 130 additions and 57 deletions

View file

@ -10,8 +10,9 @@ const async = require('async');
const _ = require('lodash');
const assert = require('assert');
exports.init = init;
exports.getDefaultPath = getDefaultPath;
exports.init = init;
exports.getDefaultPath = getDefaultPath;
exports.getDefaultConfig = getDefaultConfig;
let currentConfiguration = {};
@ -133,8 +134,8 @@ function getDefaultConfig() {
general : {
boardName : 'Another Fine ENiGMA½ BBS',
// :TODO: closedSystem and loginAttemps prob belong under users{}?
closedSystem : false, // is the system closed to new users?
loginAttempts : 3,
menuFile : 'menu.hjson', // Override to use something else, e.g. demo.hjson. Can be a full path (defaults to ./config)
@ -173,7 +174,7 @@ function getDefaultConfig() {
default : 'luciano_blocktronics',
preLogin : 'luciano_blocktronics',
passwordChar : '*', // TODO: move to user ?
passwordChar : '*',
dateFormat : {
short : 'MM/DD/YYYY',
long : 'ddd, MMMM Do, YYYY',