upgrade sol.enviconfig to include mergeConfig and getDynamicConfig

This commit is contained in:
陆柯 2021-09-12 09:55:35 +08:00
parent cdd08a0022
commit 2e64e061af

View File

@ -4,7 +4,7 @@ const nettool = require('sol.nettool')
const express = require('express') const express = require('express')
const wo = (global.wo = { const wo = (global.wo = {
envi : require('sol.enviconfig')({ envi : require('sol.enviconfig').mergeConfig({
commanderOptions: [ commanderOptions: [
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述]后两者用于传给commander取值后覆盖掉Config里的同名变量。 // 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述]后两者用于传给commander取值后覆盖掉Config里的同名变量。
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'], ['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],