@antora/cli
Advanced tools
Comparing version 3.0.3 to 3.1.0
@@ -5,3 +5,3 @@ 'use strict' | ||
const cli = require('./commander') | ||
const convict = require('@antora/playbook-builder/lib/solitary-convict') | ||
const convict = require('@antora/playbook-builder/lib/solitary-convict') // drop lib segment in Antora 4 | ||
const ospath = require('path') | ||
@@ -156,3 +156,3 @@ const userRequire = require('@antora/user-require-helper') | ||
const message = `error: unknown command '${name}'. See '${cli.name()} --help' for a list of commands.` | ||
cli._displayError(1, 'commander.unknownCommand', message) | ||
cli.error(message, { code: 'commander.unknownCommand', exitCode: 1 }) | ||
} | ||
@@ -159,0 +159,0 @@ } else { |
@@ -30,6 +30,8 @@ 'use strict' | ||
const { arg, format, default: default_ } = value | ||
const option = { name: arg, form: `--${arg}`, description: value.doc, format: format } | ||
const option = { name: arg, form: `--${arg}`, description: value.doc, format } | ||
if (Array.isArray(format)) { | ||
option.form += ' <choice>' | ||
option.choices = Object.defineProperty(format.slice(), 'map', { value: () => format }) | ||
const choices = format.slice() | ||
const value = () => choices | ||
Object.defineProperties((option.choices = choices), { map: { value }, slice: { value } }) | ||
} else if (format !== 'boolean') { | ||
@@ -36,0 +38,0 @@ option.form += ` <${arg.substr(arg.lastIndexOf('-') + 1, arg.length)}>` |
{ | ||
"name": "@antora/cli", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"description": "The command line interface for Antora.", | ||
@@ -17,2 +17,9 @@ "license": "MPL-2.0", | ||
"main": "lib/index.js", | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"imports": { | ||
"#commander": "./lib/commander.js" | ||
}, | ||
"bin": { | ||
@@ -22,9 +29,9 @@ "antora": "bin/antora" | ||
"dependencies": { | ||
"@antora/logger": "3.0.3", | ||
"@antora/playbook-builder": "3.0.3", | ||
"@antora/logger": "3.1.0", | ||
"@antora/playbook-builder": "3.1.0", | ||
"@antora/user-require-helper": "~2.0", | ||
"commander": "~8.3" | ||
"commander": "~9.4" | ||
}, | ||
"devDependencies": { | ||
"@antora/site-publisher": "3.0.3", | ||
"@antora/site-publisher": "3.1.0", | ||
"@asciidoctor/core": "~2.2", | ||
@@ -35,3 +42,3 @@ "convict": "~6.2", | ||
"engines": { | ||
"node": ">=12.21.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -38,0 +45,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12385
227
+ Added@antora/logger@3.1.0(transitive)
+ Added@antora/playbook-builder@3.1.0(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedcommander@9.4.1(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedfast-copy@2.1.7(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedhelp-me@4.2.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedminimatch@5.1.6(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedon-exit-leak-free@2.1.2(transitive)
+ Addedpino@8.4.2(transitive)
+ Addedpino-pretty@9.0.1(transitive)
+ Addedpino-std-serializers@6.2.2(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedprocess-warning@2.3.2(transitive)
+ Addedreadable-stream@4.5.2(transitive)
+ Addedreal-require@0.2.0(transitive)
+ Addedsonic-boom@3.2.1(transitive)
+ Addedthread-stream@2.7.0(transitive)
- Removed@antora/logger@3.0.3(transitive)
- Removed@antora/playbook-builder@3.0.3(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedargs@5.0.3(transitive)
- Removedcamelcase@5.0.06.3.0(transitive)
- Removedcamelcase-keys@7.0.2(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcommander@8.3.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedleven@2.1.0(transitive)
- Removedmap-obj@4.3.0(transitive)
- Removedmri@1.1.4(transitive)
- Removedon-exit-leak-free@0.2.0(transitive)
- Removedpino@7.6.5(transitive)
- Removedpino-pretty@7.3.0(transitive)
- Removedpino-std-serializers@4.0.0(transitive)
- Removedprocess-warning@1.0.0(transitive)
- Removedquick-lru@5.1.1(transitive)
- Removedreal-require@0.1.0(transitive)
- Removedrfdc@1.4.1(transitive)
- Removedsonic-boom@2.4.2(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedthread-stream@0.13.2(transitive)
- Removedtype-fest@1.4.0(transitive)
Updated@antora/logger@3.1.0
Updatedcommander@~9.4