@antora/cli
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -15,11 +15,11 @@ 'use strict' | ||
function getOptions (config) { | ||
//return collectOptions(config._schema.properties).sort((a, b) => a.name.localeCompare(b.name)) | ||
return collectOptions(config._schema.properties) | ||
//return collectOptions(config._schema._cvtProperties).sort((a, b) => a.name.localeCompare(b.name)) | ||
return collectOptions(config._schema._cvtProperties) | ||
} | ||
function collectOptions (properties, options = [], context = undefined) { | ||
return Object.entries(properties).reduce((accum, [key, value]) => { | ||
function collectOptions (props, options = [], context = undefined) { | ||
return Object.entries(props).reduce((accum, [key, value]) => { | ||
const path = context ? `${context}.${key}` : key | ||
if ('properties' in value) { | ||
return collectOptions(value.properties, accum, path) | ||
if ('_cvtProperties' in value) { | ||
return collectOptions(value._cvtProperties, accum, path) | ||
} else if ('arg' in value) { | ||
@@ -26,0 +26,0 @@ const { arg, format, default: default_ } = value |
{ | ||
"name": "@antora/cli", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "The command line interface for Antora.", | ||
@@ -21,8 +21,8 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/playbook-builder": "2.3.1", | ||
"@antora/playbook-builder": "2.3.2", | ||
"commander": "~5.1" | ||
}, | ||
"devDependencies": { | ||
"@antora/site-publisher": "2.3.1", | ||
"convict": "~5.2", | ||
"@antora/site-publisher": "2.3.2", | ||
"convict": "~6.0", | ||
"fs-extra": "~8.1", | ||
@@ -46,3 +46,3 @@ "kapok-js": "~0.10" | ||
], | ||
"gitHead": "b5c90bd55ba16fc6b293ea76d40452212c6e2a37" | ||
"gitHead": "859ba61d87c93743e302b0e2113252cb95739ac0" | ||
} |
26141
+ Added@antora/playbook-builder@2.3.2(transitive)
+ Addedconvict@6.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)
- Removed@antora/playbook-builder@2.3.1(transitive)
- Removedconvict@5.2.1(transitive)
- Removedjs-yaml@3.13.1(transitive)
- Removedjson5@2.1.0(transitive)
- Removedmoment@2.24.0(transitive)
- Removedvalidator@11.1.0(transitive)
- Removedyargs-parser@13.1.2(transitive)