@bleedingdev/modern-js-utils 3.9.0-ultramodern.8 → 3.9.3-ultramodern.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/applyOptionsChain.js +1 -1
- package/dist/cjs/cli/get/config.js +1 -1
- package/dist/cjs/cli/is/config.js +1 -1
- package/dist/cjs/cli/require.js +3 -7
- package/dist/cjs/compiled.js +28 -34
- package/dist/cjs/fast-glob.js +50 -0
- package/dist/cjs/watch-options.js +18 -0
- package/dist/compiled/address/LICENSE.txt +22 -0
- package/dist/compiled/address/declaration-licenses/address/LICENSE.txt +22 -0
- package/dist/compiled/address/index.d.mts +50 -0
- package/dist/compiled/address/index.d.ts +50 -0
- package/dist/compiled/address/index.js +189 -136
- package/dist/compiled/address/index.mjs +187 -0
- package/dist/compiled/address/licenses-cjs.txt +24 -0
- package/dist/compiled/address/licenses-esm.txt +24 -0
- package/dist/compiled/address/package.json +1 -1
- package/dist/compiled/address/provenance.json +22 -0
- package/dist/compiled/browserslist/LICENSE +20 -0
- package/dist/compiled/browserslist/declaration-licenses/browserslist/LICENSE +20 -0
- package/dist/compiled/browserslist/index.d.ts +51 -5
- package/dist/compiled/browserslist/index.js +1763 -820
- package/dist/compiled/browserslist/licenses-cjs.txt +286 -0
- package/dist/compiled/browserslist/package.json +1 -1
- package/dist/compiled/browserslist/provenance.json +19 -0
- package/dist/compiled/chalk/declaration-licenses/chalk/license +9 -0
- package/dist/compiled/chalk/index.d.mts +677 -0
- package/dist/compiled/chalk/index.d.ts +619 -357
- package/dist/compiled/chalk/index.js +734 -2343
- package/dist/compiled/chalk/index.mjs +761 -0
- package/dist/compiled/chalk/license +1 -1
- package/dist/compiled/chalk/licenses-cjs.txt +11 -0
- package/dist/compiled/chalk/licenses-esm.txt +11 -0
- package/dist/compiled/chalk/package.json +1 -1
- package/dist/compiled/chalk/provenance.json +19 -0
- package/dist/compiled/chokidar/LICENSE +21 -0
- package/dist/compiled/chokidar/declaration-licenses/chokidar/LICENSE +21 -0
- package/dist/compiled/chokidar/declaration-licenses/readdirp/LICENSE +21 -0
- package/dist/compiled/chokidar/index.d.mts +385 -0
- package/dist/compiled/chokidar/index.d.ts +385 -0
- package/dist/compiled/chokidar/index.js +1437 -4099
- package/dist/compiled/chokidar/index.js.LICENSE.txt +1 -41
- package/dist/compiled/chokidar/index.mjs +1492 -0
- package/dist/compiled/chokidar/index.mjs.LICENSE.txt +1 -0
- package/dist/compiled/chokidar/licenses-cjs.txt +48 -0
- package/dist/compiled/chokidar/licenses-esm.txt +48 -0
- package/dist/compiled/chokidar/package.json +1 -1
- package/dist/compiled/chokidar/provenance.json +27 -0
- package/dist/compiled/commander/declaration-licenses/commander/LICENSE +22 -0
- package/dist/compiled/commander/index.d.mts +1116 -0
- package/dist/compiled/commander/index.d.ts +1116 -0
- package/dist/compiled/commander/index.js +1738 -1499
- package/dist/compiled/commander/index.mjs +1778 -2
- package/dist/compiled/commander/licenses-cjs.txt +24 -0
- package/dist/compiled/commander/licenses-esm.txt +24 -0
- package/dist/compiled/commander/package.json +1 -1
- package/dist/compiled/commander/provenance.json +22 -0
- package/dist/compiled/debug/declaration-licenses/@types_ms/LICENSE +21 -0
- package/dist/compiled/debug/index.d.ts +79 -16
- package/dist/compiled/debug/index.js +172 -106
- package/dist/compiled/debug/licenses-cjs.txt +60 -0
- package/dist/compiled/debug/package.json +1 -1
- package/dist/compiled/debug/provenance.json +27 -0
- package/dist/compiled/dotenv-expand/declaration-licenses/dotenv-expand/LICENSE +24 -0
- package/dist/compiled/dotenv-expand/index.d.ts +48 -10
- package/dist/compiled/dotenv-expand/index.js +65 -41
- package/dist/compiled/dotenv-expand/licenses-cjs.txt +25 -0
- package/dist/compiled/dotenv-expand/package.json +1 -1
- package/dist/compiled/dotenv-expand/provenance.json +22 -0
- package/dist/compiled/execa/declaration-licenses/execa/license +9 -0
- package/dist/compiled/execa/index.d.mts +2451 -0
- package/dist/compiled/execa/index.d.ts +2301 -414
- package/dist/compiled/execa/index.js +6485 -1681
- package/dist/compiled/execa/index.mjs +6541 -0
- package/dist/compiled/execa/licenses-cjs.txt +443 -0
- package/dist/compiled/execa/licenses-esm.txt +443 -0
- package/dist/compiled/execa/package.json +1 -1
- package/dist/compiled/execa/provenance.json +19 -0
- package/dist/compiled/filesize/LICENSE +28 -0
- package/dist/compiled/filesize/declaration-licenses/filesize/LICENSE +28 -0
- package/dist/compiled/filesize/index.d.mts +98 -0
- package/dist/compiled/filesize/index.d.ts +98 -0
- package/dist/compiled/filesize/index.js +425 -185
- package/dist/compiled/filesize/index.js.LICENSE.txt +2 -2
- package/dist/compiled/filesize/index.mjs +450 -0
- package/dist/compiled/filesize/index.mjs.LICENSE.txt +7 -0
- package/dist/compiled/filesize/licenses-cjs.txt +29 -0
- package/dist/compiled/filesize/licenses-esm.txt +29 -0
- package/dist/compiled/filesize/package.json +1 -1
- package/dist/compiled/filesize/provenance.json +22 -0
- package/dist/compiled/fs-extra/LICENSE +15 -0
- package/dist/compiled/fs-extra/declaration-licenses/@types_fs-extra/LICENSE +21 -0
- package/dist/compiled/fs-extra/declaration-licenses/@types_jsonfile/LICENSE +21 -0
- package/dist/compiled/fs-extra/index.d.ts +997 -496
- package/dist/compiled/fs-extra/index.js +1142 -1355
- package/dist/compiled/fs-extra/licenses-cjs.txt +79 -0
- package/dist/compiled/fs-extra/package.json +1 -1
- package/dist/compiled/fs-extra/provenance.json +27 -0
- package/dist/compiled/glob/LICENSE.md +63 -0
- package/dist/compiled/glob/declaration-licenses/glob/LICENSE.md +63 -0
- package/dist/compiled/glob/declaration-licenses/lru-cache/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/minimatch/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/minipass/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/path-scurry/LICENSE.md +55 -0
- package/dist/compiled/glob/index.d.mts +3823 -0
- package/dist/compiled/glob/index.d.ts +3823 -91
- package/dist/compiled/glob/index.js +3612 -1937
- package/dist/compiled/glob/index.mjs +3467 -0
- package/dist/compiled/glob/licenses-cjs.txt +65 -0
- package/dist/compiled/glob/licenses-esm.txt +65 -0
- package/dist/compiled/glob/package.json +1 -1
- package/dist/compiled/glob/provenance.json +42 -0
- package/dist/compiled/globby/declaration-licenses/globby/license +9 -0
- package/dist/compiled/globby/index.d.mts +422 -0
- package/dist/compiled/globby/index.d.ts +364 -128
- package/dist/compiled/globby/index.js +4417 -521
- package/dist/compiled/globby/index.js.LICENSE.txt +20 -0
- package/dist/compiled/globby/index.mjs +4572 -0
- package/dist/compiled/globby/index.mjs.LICENSE.txt +20 -0
- package/dist/compiled/globby/license +1 -1
- package/dist/compiled/globby/licenses-cjs.txt +237 -0
- package/dist/compiled/globby/licenses-esm.txt +237 -0
- package/dist/compiled/globby/package.json +1 -1
- package/dist/compiled/globby/provenance.json +19 -0
- package/dist/compiled/gzip-size/declaration-licenses/gzip-size/license +9 -0
- package/dist/compiled/gzip-size/index.d.mts +106 -0
- package/dist/compiled/gzip-size/index.d.ts +91 -81
- package/dist/compiled/gzip-size/index.js +117 -94
- package/dist/compiled/gzip-size/index.mjs +170 -0
- package/dist/compiled/gzip-size/licenses-cjs.txt +33 -0
- package/dist/compiled/gzip-size/licenses-esm.txt +33 -0
- package/dist/compiled/gzip-size/package.json +1 -1
- package/dist/compiled/gzip-size/provenance.json +19 -0
- package/dist/compiled/import-lazy/declaration-licenses/import-lazy/license +9 -0
- package/dist/compiled/import-lazy/index.d.ts +2 -2
- package/dist/compiled/import-lazy/index.js +18 -19
- package/dist/compiled/import-lazy/licenses-cjs.txt +11 -0
- package/dist/compiled/import-lazy/package.json +1 -1
- package/dist/compiled/import-lazy/provenance.json +19 -0
- package/dist/compiled/inquirer/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_checkbox/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_confirm/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_core/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_editor/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_expand/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_external-editor/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_input/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_number/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_password/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_prompts/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_rawlist/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_search/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_select/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_type/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/inquirer/LICENSE +22 -0
- package/dist/compiled/inquirer/index.d.mts +790 -0
- package/dist/compiled/inquirer/index.d.ts +727 -934
- package/dist/compiled/inquirer/index.js +5975 -14467
- package/dist/compiled/inquirer/index.mjs +11624 -0
- package/dist/compiled/inquirer/licenses-cjs.txt +619 -0
- package/dist/compiled/inquirer/licenses-esm.txt +619 -0
- package/dist/compiled/inquirer/package.json +1 -1
- package/dist/compiled/inquirer/provenance.json +92 -0
- package/dist/compiled/js-yaml/declaration-licenses/js-yaml/LICENSE +21 -0
- package/dist/compiled/js-yaml/index.d.mts +1126 -0
- package/dist/compiled/js-yaml/index.d.ts +1114 -142
- package/dist/compiled/js-yaml/index.js +20 -21
- package/dist/compiled/js-yaml/index.js.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/index.mjs +5 -4
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/licenses-cjs.txt +23 -0
- package/dist/compiled/js-yaml/licenses-esm.txt +23 -0
- package/dist/compiled/js-yaml/package.json +1 -1
- package/dist/compiled/js-yaml/provenance.json +19 -0
- package/dist/compiled/json5/LICENSE.md +23 -0
- package/dist/compiled/json5/declaration-licenses/json5/LICENSE.md +23 -0
- package/dist/compiled/json5/index.d.ts +103 -0
- package/dist/compiled/json5/index.js +11 -11
- package/dist/compiled/json5/licenses-cjs.txt +25 -0
- package/dist/compiled/json5/package.json +1 -1
- package/dist/compiled/json5/provenance.json +22 -0
- package/dist/compiled/lodash/add.d.ts +2 -0
- package/dist/compiled/lodash/after.d.ts +2 -0
- package/dist/compiled/lodash/ary.d.ts +2 -0
- package/dist/compiled/lodash/assign.d.ts +2 -0
- package/dist/compiled/lodash/assignIn.d.ts +2 -0
- package/dist/compiled/lodash/assignInWith.d.ts +2 -0
- package/dist/compiled/lodash/assignWith.d.ts +2 -0
- package/dist/compiled/lodash/at.d.ts +2 -0
- package/dist/compiled/lodash/attempt.d.ts +2 -0
- package/dist/compiled/lodash/before.d.ts +2 -0
- package/dist/compiled/lodash/bind.d.ts +2 -0
- package/dist/compiled/lodash/bindAll.d.ts +2 -0
- package/dist/compiled/lodash/bindKey.d.ts +2 -0
- package/dist/compiled/lodash/camelCase.d.ts +2 -0
- package/dist/compiled/lodash/capitalize.d.ts +2 -0
- package/dist/compiled/lodash/castArray.d.ts +2 -0
- package/dist/compiled/lodash/ceil.d.ts +2 -0
- package/dist/compiled/lodash/chain.d.ts +2 -0
- package/dist/compiled/lodash/chunk.d.ts +2 -0
- package/dist/compiled/lodash/clamp.d.ts +2 -0
- package/dist/compiled/lodash/clone.d.ts +2 -0
- package/dist/compiled/lodash/cloneDeep.d.ts +2 -0
- package/dist/compiled/lodash/cloneDeepWith.d.ts +2 -0
- package/dist/compiled/lodash/cloneWith.d.ts +2 -0
- package/dist/compiled/lodash/common/array.d.ts +56 -22
- package/dist/compiled/lodash/common/collection.d.ts +9 -1
- package/dist/compiled/lodash/common/common.d.ts +17 -10
- package/dist/compiled/lodash/common/function.d.ts +10 -1
- package/dist/compiled/lodash/common/lang.d.ts +8 -5
- package/dist/compiled/lodash/common/math.d.ts +3 -1
- package/dist/compiled/lodash/common/object.d.ts +141 -17
- package/dist/compiled/lodash/common/seq.d.ts +2 -2
- package/dist/compiled/lodash/common/string.d.ts +17 -17
- package/dist/compiled/lodash/compact.d.ts +2 -0
- package/dist/compiled/lodash/concat.d.ts +2 -0
- package/dist/compiled/lodash/cond.d.ts +2 -0
- package/dist/compiled/lodash/conforms.d.ts +2 -0
- package/dist/compiled/lodash/conformsTo.d.ts +2 -0
- package/dist/compiled/lodash/constant.d.ts +2 -0
- package/dist/compiled/lodash/countBy.d.ts +2 -0
- package/dist/compiled/lodash/create.d.ts +2 -0
- package/dist/compiled/lodash/curry.d.ts +2 -0
- package/dist/compiled/lodash/curryRight.d.ts +2 -0
- package/dist/compiled/lodash/debounce.d.ts +2 -0
- package/dist/compiled/lodash/deburr.d.ts +2 -0
- package/dist/compiled/lodash/declaration-licenses/@types_lodash/LICENSE +21 -0
- package/dist/compiled/lodash/defaultTo.d.ts +2 -0
- package/dist/compiled/lodash/defaults.d.ts +2 -0
- package/dist/compiled/lodash/defaultsDeep.d.ts +2 -0
- package/dist/compiled/lodash/defer.d.ts +2 -0
- package/dist/compiled/lodash/delay.d.ts +2 -0
- package/dist/compiled/lodash/difference.d.ts +2 -0
- package/dist/compiled/lodash/differenceBy.d.ts +2 -0
- package/dist/compiled/lodash/differenceWith.d.ts +2 -0
- package/dist/compiled/lodash/divide.d.ts +2 -0
- package/dist/compiled/lodash/drop.d.ts +2 -0
- package/dist/compiled/lodash/dropRight.d.ts +2 -0
- package/dist/compiled/lodash/dropRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/dropWhile.d.ts +2 -0
- package/dist/compiled/lodash/each.d.ts +2 -0
- package/dist/compiled/lodash/eachRight.d.ts +2 -0
- package/dist/compiled/lodash/endsWith.d.ts +2 -0
- package/dist/compiled/lodash/entries.d.ts +2 -0
- package/dist/compiled/lodash/entriesIn.d.ts +2 -0
- package/dist/compiled/lodash/eq.d.ts +2 -0
- package/dist/compiled/lodash/escape.d.ts +2 -0
- package/dist/compiled/lodash/escapeRegExp.d.ts +2 -0
- package/dist/compiled/lodash/every.d.ts +2 -0
- package/dist/compiled/lodash/extend.d.ts +2 -0
- package/dist/compiled/lodash/extendWith.d.ts +2 -0
- package/dist/compiled/lodash/fill.d.ts +2 -0
- package/dist/compiled/lodash/filter.d.ts +2 -0
- package/dist/compiled/lodash/find.d.ts +2 -0
- package/dist/compiled/lodash/findIndex.d.ts +2 -0
- package/dist/compiled/lodash/findKey.d.ts +2 -0
- package/dist/compiled/lodash/findLast.d.ts +2 -0
- package/dist/compiled/lodash/findLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/findLastKey.d.ts +2 -0
- package/dist/compiled/lodash/first.d.ts +2 -0
- package/dist/compiled/lodash/flatMap.d.ts +2 -0
- package/dist/compiled/lodash/flatMapDeep.d.ts +2 -0
- package/dist/compiled/lodash/flatMapDepth.d.ts +2 -0
- package/dist/compiled/lodash/flatten.d.ts +2 -0
- package/dist/compiled/lodash/flattenDeep.d.ts +2 -0
- package/dist/compiled/lodash/flattenDepth.d.ts +2 -0
- package/dist/compiled/lodash/flip.d.ts +2 -0
- package/dist/compiled/lodash/floor.d.ts +2 -0
- package/dist/compiled/lodash/flow.d.ts +2 -0
- package/dist/compiled/lodash/flowRight.d.ts +2 -0
- package/dist/compiled/lodash/forEach.d.ts +2 -0
- package/dist/compiled/lodash/forEachRight.d.ts +2 -0
- package/dist/compiled/lodash/forIn.d.ts +2 -0
- package/dist/compiled/lodash/forInRight.d.ts +2 -0
- package/dist/compiled/lodash/forOwn.d.ts +2 -0
- package/dist/compiled/lodash/forOwnRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/F.d.ts +2 -0
- package/dist/compiled/lodash/fp/T.d.ts +2 -0
- package/dist/compiled/lodash/fp/__.d.ts +3 -0
- package/dist/compiled/lodash/fp/add.d.ts +2 -0
- package/dist/compiled/lodash/fp/after.d.ts +2 -0
- package/dist/compiled/lodash/fp/all.d.ts +2 -0
- package/dist/compiled/lodash/fp/allPass.d.ts +2 -0
- package/dist/compiled/lodash/fp/always.d.ts +2 -0
- package/dist/compiled/lodash/fp/any.d.ts +2 -0
- package/dist/compiled/lodash/fp/anyPass.d.ts +2 -0
- package/dist/compiled/lodash/fp/apply.d.ts +2 -0
- package/dist/compiled/lodash/fp/ary.d.ts +2 -0
- package/dist/compiled/lodash/fp/assign.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assoc.d.ts +2 -0
- package/dist/compiled/lodash/fp/assocPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/at.d.ts +2 -0
- package/dist/compiled/lodash/fp/attempt.d.ts +2 -0
- package/dist/compiled/lodash/fp/before.d.ts +2 -0
- package/dist/compiled/lodash/fp/bind.d.ts +2 -0
- package/dist/compiled/lodash/fp/bindAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/bindKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/camelCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/capitalize.d.ts +2 -0
- package/dist/compiled/lodash/fp/castArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/ceil.d.ts +2 -0
- package/dist/compiled/lodash/fp/chunk.d.ts +2 -0
- package/dist/compiled/lodash/fp/clamp.d.ts +2 -0
- package/dist/compiled/lodash/fp/clone.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneDeepWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/compact.d.ts +2 -0
- package/dist/compiled/lodash/fp/complement.d.ts +2 -0
- package/dist/compiled/lodash/fp/compose.d.ts +2 -0
- package/dist/compiled/lodash/fp/concat.d.ts +2 -0
- package/dist/compiled/lodash/fp/cond.d.ts +2 -0
- package/dist/compiled/lodash/fp/conforms.d.ts +2 -0
- package/dist/compiled/lodash/fp/conformsTo.d.ts +2 -0
- package/dist/compiled/lodash/fp/constant.d.ts +2 -0
- package/dist/compiled/lodash/fp/contains.d.ts +2 -0
- package/dist/compiled/lodash/fp/convert.d.ts +15 -0
- package/dist/compiled/lodash/fp/countBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/create.d.ts +2 -0
- package/dist/compiled/lodash/fp/curry.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryN.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryRightN.d.ts +2 -0
- package/dist/compiled/lodash/fp/debounce.d.ts +2 -0
- package/dist/compiled/lodash/fp/deburr.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultTo.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaults.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsDeepAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/defer.d.ts +2 -0
- package/dist/compiled/lodash/fp/delay.d.ts +2 -0
- package/dist/compiled/lodash/fp/difference.d.ts +2 -0
- package/dist/compiled/lodash/fp/differenceBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/differenceWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/dissoc.d.ts +2 -0
- package/dist/compiled/lodash/fp/dissocPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/divide.d.ts +2 -0
- package/dist/compiled/lodash/fp/drop.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropLastWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/each.d.ts +2 -0
- package/dist/compiled/lodash/fp/eachRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/endsWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/entries.d.ts +2 -0
- package/dist/compiled/lodash/fp/entriesIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/eq.d.ts +2 -0
- package/dist/compiled/lodash/fp/equals.d.ts +2 -0
- package/dist/compiled/lodash/fp/escape.d.ts +2 -0
- package/dist/compiled/lodash/fp/escapeRegExp.d.ts +2 -0
- package/dist/compiled/lodash/fp/every.d.ts +2 -0
- package/dist/compiled/lodash/fp/extend.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/fill.d.ts +2 -0
- package/dist/compiled/lodash/fp/filter.d.ts +2 -0
- package/dist/compiled/lodash/fp/find.d.ts +2 -0
- package/dist/compiled/lodash/fp/findFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/findIndexFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastIndexFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/first.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMapDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMapDepth.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatten.d.ts +2 -0
- package/dist/compiled/lodash/fp/flattenDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/flattenDepth.d.ts +2 -0
- package/dist/compiled/lodash/fp/flip.d.ts +2 -0
- package/dist/compiled/lodash/fp/floor.d.ts +2 -0
- package/dist/compiled/lodash/fp/flow.d.ts +2 -0
- package/dist/compiled/lodash/fp/flowRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forEach.d.ts +2 -0
- package/dist/compiled/lodash/fp/forEachRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/forInRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forOwn.d.ts +2 -0
- package/dist/compiled/lodash/fp/forOwnRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/fromPairs.d.ts +2 -0
- package/dist/compiled/lodash/fp/functions.d.ts +2 -0
- package/dist/compiled/lodash/fp/functionsIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/get.d.ts +2 -0
- package/dist/compiled/lodash/fp/getOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/groupBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/gt.d.ts +2 -0
- package/dist/compiled/lodash/fp/gte.d.ts +2 -0
- package/dist/compiled/lodash/fp/has.d.ts +2 -0
- package/dist/compiled/lodash/fp/hasIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/head.d.ts +2 -0
- package/dist/compiled/lodash/fp/identical.d.ts +2 -0
- package/dist/compiled/lodash/fp/identity.d.ts +2 -0
- package/dist/compiled/lodash/fp/inRange.d.ts +2 -0
- package/dist/compiled/lodash/fp/includes.d.ts +2 -0
- package/dist/compiled/lodash/fp/includesFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexOfFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/init.d.ts +2 -0
- package/dist/compiled/lodash/fp/initial.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersection.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersectionBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersectionWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/invert.d.ts +2 -0
- package/dist/compiled/lodash/fp/invertBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/invertObj.d.ts +2 -0
- package/dist/compiled/lodash/fp/invoke.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeArgs.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeArgsMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArguments.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayBuffer.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayLike.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayLikeObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isBoolean.d.ts +2 -0
- package/dist/compiled/lodash/fp/isBuffer.d.ts +2 -0
- package/dist/compiled/lodash/fp/isDate.d.ts +2 -0
- package/dist/compiled/lodash/fp/isElement.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEmpty.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEqual.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEqualWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/isError.d.ts +2 -0
- package/dist/compiled/lodash/fp/isFinite.d.ts +2 -0
- package/dist/compiled/lodash/fp/isFunction.d.ts +2 -0
- package/dist/compiled/lodash/fp/isInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/isLength.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMatch.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMatchWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNaN.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNative.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNil.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNull.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNumber.d.ts +2 -0
- package/dist/compiled/lodash/fp/isObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isObjectLike.d.ts +2 -0
- package/dist/compiled/lodash/fp/isPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isRegExp.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSet.d.ts +2 -0
- package/dist/compiled/lodash/fp/isString.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSymbol.d.ts +2 -0
- package/dist/compiled/lodash/fp/isTypedArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/isUndefined.d.ts +2 -0
- package/dist/compiled/lodash/fp/isWeakMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isWeakSet.d.ts +2 -0
- package/dist/compiled/lodash/fp/iteratee.d.ts +2 -0
- package/dist/compiled/lodash/fp/join.d.ts +2 -0
- package/dist/compiled/lodash/fp/juxt.d.ts +2 -0
- package/dist/compiled/lodash/fp/kebabCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/keyBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/keys.d.ts +2 -0
- package/dist/compiled/lodash/fp/keysIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/last.d.ts +2 -0
- package/dist/compiled/lodash/fp/lastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/lastIndexOfFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/lowerCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/lowerFirst.d.ts +2 -0
- package/dist/compiled/lodash/fp/lt.d.ts +2 -0
- package/dist/compiled/lodash/fp/lte.d.ts +2 -0
- package/dist/compiled/lodash/fp/map.d.ts +2 -0
- package/dist/compiled/lodash/fp/mapKeys.d.ts +2 -0
- package/dist/compiled/lodash/fp/mapValues.d.ts +2 -0
- package/dist/compiled/lodash/fp/matches.d.ts +2 -0
- package/dist/compiled/lodash/fp/matchesProperty.d.ts +2 -0
- package/dist/compiled/lodash/fp/max.d.ts +2 -0
- package/dist/compiled/lodash/fp/maxBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/mean.d.ts +2 -0
- package/dist/compiled/lodash/fp/meanBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/memoize.d.ts +2 -0
- package/dist/compiled/lodash/fp/merge.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/method.d.ts +2 -0
- package/dist/compiled/lodash/fp/methodOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/min.d.ts +2 -0
- package/dist/compiled/lodash/fp/minBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/multiply.d.ts +2 -0
- package/dist/compiled/lodash/fp/nAry.d.ts +2 -0
- package/dist/compiled/lodash/fp/negate.d.ts +2 -0
- package/dist/compiled/lodash/fp/noConflict.d.ts +2 -0
- package/dist/compiled/lodash/fp/noop.d.ts +2 -0
- package/dist/compiled/lodash/fp/now.d.ts +2 -0
- package/dist/compiled/lodash/fp/nth.d.ts +2 -0
- package/dist/compiled/lodash/fp/nthArg.d.ts +2 -0
- package/dist/compiled/lodash/fp/omit.d.ts +2 -0
- package/dist/compiled/lodash/fp/omitAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/omitBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/once.d.ts +2 -0
- package/dist/compiled/lodash/fp/orderBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/over.d.ts +2 -0
- package/dist/compiled/lodash/fp/overArgs.d.ts +2 -0
- package/dist/compiled/lodash/fp/overEvery.d.ts +2 -0
- package/dist/compiled/lodash/fp/overSome.d.ts +2 -0
- package/dist/compiled/lodash/fp/pad.d.ts +2 -0
- package/dist/compiled/lodash/fp/padChars.d.ts +2 -0
- package/dist/compiled/lodash/fp/padCharsEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/padCharsStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/padEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/padStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/parseInt.d.ts +2 -0
- package/dist/compiled/lodash/fp/partial.d.ts +2 -0
- package/dist/compiled/lodash/fp/partialRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/partition.d.ts +2 -0
- package/dist/compiled/lodash/fp/path.d.ts +2 -0
- package/dist/compiled/lodash/fp/pathEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/pathOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/paths.d.ts +2 -0
- package/dist/compiled/lodash/fp/pick.d.ts +2 -0
- package/dist/compiled/lodash/fp/pickAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/pickBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/pipe.d.ts +2 -0
- package/dist/compiled/lodash/fp/placeholder.d.ts +3 -0
- package/dist/compiled/lodash/fp/pluck.d.ts +2 -0
- package/dist/compiled/lodash/fp/prop.d.ts +2 -0
- package/dist/compiled/lodash/fp/propEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/propOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/property.d.ts +2 -0
- package/dist/compiled/lodash/fp/propertyOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/props.d.ts +2 -0
- package/dist/compiled/lodash/fp/pull.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAllBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAt.d.ts +2 -0
- package/dist/compiled/lodash/fp/random.d.ts +2 -0
- package/dist/compiled/lodash/fp/range.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeStep.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeStepRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/rearg.d.ts +2 -0
- package/dist/compiled/lodash/fp/reduce.d.ts +2 -0
- package/dist/compiled/lodash/fp/reduceRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/reject.d.ts +2 -0
- package/dist/compiled/lodash/fp/remove.d.ts +2 -0
- package/dist/compiled/lodash/fp/repeat.d.ts +2 -0
- package/dist/compiled/lodash/fp/replace.d.ts +2 -0
- package/dist/compiled/lodash/fp/rest.d.ts +2 -0
- package/dist/compiled/lodash/fp/restFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/result.d.ts +2 -0
- package/dist/compiled/lodash/fp/reverse.d.ts +2 -0
- package/dist/compiled/lodash/fp/round.d.ts +2 -0
- package/dist/compiled/lodash/fp/runInContext.d.ts +2 -0
- package/dist/compiled/lodash/fp/sample.d.ts +2 -0
- package/dist/compiled/lodash/fp/sampleSize.d.ts +2 -0
- package/dist/compiled/lodash/fp/set.d.ts +2 -0
- package/dist/compiled/lodash/fp/setWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/shuffle.d.ts +2 -0
- package/dist/compiled/lodash/fp/size.d.ts +2 -0
- package/dist/compiled/lodash/fp/slice.d.ts +2 -0
- package/dist/compiled/lodash/fp/snakeCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/some.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedUniq.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedUniqBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/split.d.ts +2 -0
- package/dist/compiled/lodash/fp/spread.d.ts +2 -0
- package/dist/compiled/lodash/fp/spreadFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/startCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/startsWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubFalse.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubString.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubTrue.d.ts +2 -0
- package/dist/compiled/lodash/fp/subtract.d.ts +2 -0
- package/dist/compiled/lodash/fp/sum.d.ts +2 -0
- package/dist/compiled/lodash/fp/sumBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifference.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/tail.d.ts +2 -0
- package/dist/compiled/lodash/fp/take.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeLastWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/tap.d.ts +2 -0
- package/dist/compiled/lodash/fp/template.d.ts +2 -0
- package/dist/compiled/lodash/fp/throttle.d.ts +2 -0
- package/dist/compiled/lodash/fp/thru.d.ts +2 -0
- package/dist/compiled/lodash/fp/times.d.ts +2 -0
- package/dist/compiled/lodash/fp/toArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/toFinite.d.ts +2 -0
- package/dist/compiled/lodash/fp/toInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/toLength.d.ts +2 -0
- package/dist/compiled/lodash/fp/toLower.d.ts +2 -0
- package/dist/compiled/lodash/fp/toNumber.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPairs.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPairsIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/toSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/toString.d.ts +2 -0
- package/dist/compiled/lodash/fp/toUpper.d.ts +2 -0
- package/dist/compiled/lodash/fp/transform.d.ts +2 -0
- package/dist/compiled/lodash/fp/trim.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimChars.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimCharsEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimCharsStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/truncate.d.ts +2 -0
- package/dist/compiled/lodash/fp/unapply.d.ts +2 -0
- package/dist/compiled/lodash/fp/unary.d.ts +2 -0
- package/dist/compiled/lodash/fp/unescape.d.ts +2 -0
- package/dist/compiled/lodash/fp/union.d.ts +2 -0
- package/dist/compiled/lodash/fp/unionBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/unionWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniq.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqueId.d.ts +2 -0
- package/dist/compiled/lodash/fp/unnest.d.ts +2 -0
- package/dist/compiled/lodash/fp/unset.d.ts +2 -0
- package/dist/compiled/lodash/fp/unzip.d.ts +2 -0
- package/dist/compiled/lodash/fp/unzipWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/update.d.ts +2 -0
- package/dist/compiled/lodash/fp/updateWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/upperCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/upperFirst.d.ts +2 -0
- package/dist/compiled/lodash/fp/useWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/values.d.ts +2 -0
- package/dist/compiled/lodash/fp/valuesIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/where.d.ts +2 -0
- package/dist/compiled/lodash/fp/whereEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/without.d.ts +2 -0
- package/dist/compiled/lodash/fp/words.d.ts +2 -0
- package/dist/compiled/lodash/fp/wrap.d.ts +2 -0
- package/dist/compiled/lodash/fp/xor.d.ts +2 -0
- package/dist/compiled/lodash/fp/xorBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/xorWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/zip.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObj.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObjectDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipWith.d.ts +2 -0
- package/dist/compiled/lodash/fp.d.ts +4962 -0
- package/dist/compiled/lodash/fromPairs.d.ts +2 -0
- package/dist/compiled/lodash/functions.d.ts +2 -0
- package/dist/compiled/lodash/functionsIn.d.ts +2 -0
- package/dist/compiled/lodash/get.d.ts +2 -0
- package/dist/compiled/lodash/groupBy.d.ts +2 -0
- package/dist/compiled/lodash/gt.d.ts +2 -0
- package/dist/compiled/lodash/gte.d.ts +2 -0
- package/dist/compiled/lodash/has.d.ts +2 -0
- package/dist/compiled/lodash/hasIn.d.ts +2 -0
- package/dist/compiled/lodash/head.d.ts +2 -0
- package/dist/compiled/lodash/identity.d.ts +2 -0
- package/dist/compiled/lodash/inRange.d.ts +2 -0
- package/dist/compiled/lodash/includes.d.ts +2 -0
- package/dist/compiled/lodash/index.d.ts +1 -16
- package/dist/compiled/lodash/indexOf.d.ts +2 -0
- package/dist/compiled/lodash/initial.d.ts +2 -0
- package/dist/compiled/lodash/intersection.d.ts +2 -0
- package/dist/compiled/lodash/intersectionBy.d.ts +2 -0
- package/dist/compiled/lodash/intersectionWith.d.ts +2 -0
- package/dist/compiled/lodash/invert.d.ts +2 -0
- package/dist/compiled/lodash/invertBy.d.ts +2 -0
- package/dist/compiled/lodash/invoke.d.ts +2 -0
- package/dist/compiled/lodash/invokeMap.d.ts +2 -0
- package/dist/compiled/lodash/isArguments.d.ts +2 -0
- package/dist/compiled/lodash/isArray.d.ts +2 -0
- package/dist/compiled/lodash/isArrayBuffer.d.ts +2 -0
- package/dist/compiled/lodash/isArrayLike.d.ts +2 -0
- package/dist/compiled/lodash/isArrayLikeObject.d.ts +2 -0
- package/dist/compiled/lodash/isBoolean.d.ts +2 -0
- package/dist/compiled/lodash/isBuffer.d.ts +2 -0
- package/dist/compiled/lodash/isDate.d.ts +2 -0
- package/dist/compiled/lodash/isElement.d.ts +2 -0
- package/dist/compiled/lodash/isEmpty.d.ts +2 -0
- package/dist/compiled/lodash/isEqual.d.ts +2 -0
- package/dist/compiled/lodash/isEqualWith.d.ts +2 -0
- package/dist/compiled/lodash/isError.d.ts +2 -0
- package/dist/compiled/lodash/isFinite.d.ts +2 -0
- package/dist/compiled/lodash/isFunction.d.ts +2 -0
- package/dist/compiled/lodash/isInteger.d.ts +2 -0
- package/dist/compiled/lodash/isLength.d.ts +2 -0
- package/dist/compiled/lodash/isMap.d.ts +2 -0
- package/dist/compiled/lodash/isMatch.d.ts +2 -0
- package/dist/compiled/lodash/isMatchWith.d.ts +2 -0
- package/dist/compiled/lodash/isNaN.d.ts +2 -0
- package/dist/compiled/lodash/isNative.d.ts +2 -0
- package/dist/compiled/lodash/isNil.d.ts +2 -0
- package/dist/compiled/lodash/isNull.d.ts +2 -0
- package/dist/compiled/lodash/isNumber.d.ts +2 -0
- package/dist/compiled/lodash/isObject.d.ts +2 -0
- package/dist/compiled/lodash/isObjectLike.d.ts +2 -0
- package/dist/compiled/lodash/isPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/isRegExp.d.ts +2 -0
- package/dist/compiled/lodash/isSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/isSet.d.ts +2 -0
- package/dist/compiled/lodash/isString.d.ts +2 -0
- package/dist/compiled/lodash/isSymbol.d.ts +2 -0
- package/dist/compiled/lodash/isTypedArray.d.ts +2 -0
- package/dist/compiled/lodash/isUndefined.d.ts +2 -0
- package/dist/compiled/lodash/isWeakMap.d.ts +2 -0
- package/dist/compiled/lodash/isWeakSet.d.ts +2 -0
- package/dist/compiled/lodash/iteratee.d.ts +2 -0
- package/dist/compiled/lodash/join.d.ts +2 -0
- package/dist/compiled/lodash/kebabCase.d.ts +2 -0
- package/dist/compiled/lodash/keyBy.d.ts +2 -0
- package/dist/compiled/lodash/keys.d.ts +2 -0
- package/dist/compiled/lodash/keysIn.d.ts +2 -0
- package/dist/compiled/lodash/last.d.ts +2 -0
- package/dist/compiled/lodash/lastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/licenses-cjs.txt +49 -0
- package/dist/compiled/lodash/lowerCase.d.ts +2 -0
- package/dist/compiled/lodash/lowerFirst.d.ts +2 -0
- package/dist/compiled/lodash/lt.d.ts +2 -0
- package/dist/compiled/lodash/lte.d.ts +2 -0
- package/dist/compiled/lodash/map.d.ts +2 -0
- package/dist/compiled/lodash/mapKeys.d.ts +2 -0
- package/dist/compiled/lodash/mapValues.d.ts +2 -0
- package/dist/compiled/lodash/matches.d.ts +2 -0
- package/dist/compiled/lodash/matchesProperty.d.ts +2 -0
- package/dist/compiled/lodash/max.d.ts +2 -0
- package/dist/compiled/lodash/maxBy.d.ts +2 -0
- package/dist/compiled/lodash/mean.d.ts +2 -0
- package/dist/compiled/lodash/meanBy.d.ts +2 -0
- package/dist/compiled/lodash/memoize.d.ts +2 -0
- package/dist/compiled/lodash/merge.d.ts +2 -0
- package/dist/compiled/lodash/mergeWith.d.ts +2 -0
- package/dist/compiled/lodash/method.d.ts +2 -0
- package/dist/compiled/lodash/methodOf.d.ts +2 -0
- package/dist/compiled/lodash/min.d.ts +2 -0
- package/dist/compiled/lodash/minBy.d.ts +2 -0
- package/dist/compiled/lodash/mixin.d.ts +2 -0
- package/dist/compiled/lodash/multiply.d.ts +2 -0
- package/dist/compiled/lodash/negate.d.ts +2 -0
- package/dist/compiled/lodash/noConflict.d.ts +2 -0
- package/dist/compiled/lodash/noop.d.ts +2 -0
- package/dist/compiled/lodash/now.d.ts +2 -0
- package/dist/compiled/lodash/nth.d.ts +2 -0
- package/dist/compiled/lodash/nthArg.d.ts +2 -0
- package/dist/compiled/lodash/omit.d.ts +2 -0
- package/dist/compiled/lodash/omitBy.d.ts +2 -0
- package/dist/compiled/lodash/once.d.ts +2 -0
- package/dist/compiled/lodash/orderBy.d.ts +2 -0
- package/dist/compiled/lodash/over.d.ts +2 -0
- package/dist/compiled/lodash/overArgs.d.ts +2 -0
- package/dist/compiled/lodash/overEvery.d.ts +2 -0
- package/dist/compiled/lodash/overSome.d.ts +2 -0
- package/dist/compiled/lodash/package.json +1 -1
- package/dist/compiled/lodash/pad.d.ts +2 -0
- package/dist/compiled/lodash/padEnd.d.ts +2 -0
- package/dist/compiled/lodash/padStart.d.ts +2 -0
- package/dist/compiled/lodash/parseInt.d.ts +2 -0
- package/dist/compiled/lodash/partial.d.ts +2 -0
- package/dist/compiled/lodash/partialRight.d.ts +2 -0
- package/dist/compiled/lodash/partition.d.ts +2 -0
- package/dist/compiled/lodash/pick.d.ts +2 -0
- package/dist/compiled/lodash/pickBy.d.ts +2 -0
- package/dist/compiled/lodash/property.d.ts +2 -0
- package/dist/compiled/lodash/propertyOf.d.ts +2 -0
- package/dist/compiled/lodash/provenance.json +19 -0
- package/dist/compiled/lodash/pull.d.ts +2 -0
- package/dist/compiled/lodash/pullAll.d.ts +2 -0
- package/dist/compiled/lodash/pullAllBy.d.ts +2 -0
- package/dist/compiled/lodash/pullAllWith.d.ts +2 -0
- package/dist/compiled/lodash/pullAt.d.ts +2 -0
- package/dist/compiled/lodash/random.d.ts +2 -0
- package/dist/compiled/lodash/range.d.ts +2 -0
- package/dist/compiled/lodash/rangeRight.d.ts +2 -0
- package/dist/compiled/lodash/rearg.d.ts +2 -0
- package/dist/compiled/lodash/reduce.d.ts +2 -0
- package/dist/compiled/lodash/reduceRight.d.ts +2 -0
- package/dist/compiled/lodash/reject.d.ts +2 -0
- package/dist/compiled/lodash/remove.d.ts +2 -0
- package/dist/compiled/lodash/repeat.d.ts +2 -0
- package/dist/compiled/lodash/replace.d.ts +2 -0
- package/dist/compiled/lodash/rest.d.ts +2 -0
- package/dist/compiled/lodash/result.d.ts +2 -0
- package/dist/compiled/lodash/reverse.d.ts +2 -0
- package/dist/compiled/lodash/round.d.ts +2 -0
- package/dist/compiled/lodash/runInContext.d.ts +2 -0
- package/dist/compiled/lodash/sample.d.ts +2 -0
- package/dist/compiled/lodash/sampleSize.d.ts +2 -0
- package/dist/compiled/lodash/set.d.ts +2 -0
- package/dist/compiled/lodash/setWith.d.ts +2 -0
- package/dist/compiled/lodash/shuffle.d.ts +2 -0
- package/dist/compiled/lodash/size.d.ts +2 -0
- package/dist/compiled/lodash/slice.d.ts +2 -0
- package/dist/compiled/lodash/snakeCase.d.ts +2 -0
- package/dist/compiled/lodash/some.d.ts +2 -0
- package/dist/compiled/lodash/sortBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndex.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/sortedUniq.d.ts +2 -0
- package/dist/compiled/lodash/sortedUniqBy.d.ts +2 -0
- package/dist/compiled/lodash/split.d.ts +2 -0
- package/dist/compiled/lodash/spread.d.ts +2 -0
- package/dist/compiled/lodash/startCase.d.ts +2 -0
- package/dist/compiled/lodash/startsWith.d.ts +2 -0
- package/dist/compiled/lodash/stubArray.d.ts +2 -0
- package/dist/compiled/lodash/stubFalse.d.ts +2 -0
- package/dist/compiled/lodash/stubObject.d.ts +2 -0
- package/dist/compiled/lodash/stubString.d.ts +2 -0
- package/dist/compiled/lodash/stubTrue.d.ts +2 -0
- package/dist/compiled/lodash/subtract.d.ts +2 -0
- package/dist/compiled/lodash/sum.d.ts +2 -0
- package/dist/compiled/lodash/sumBy.d.ts +2 -0
- package/dist/compiled/lodash/tail.d.ts +2 -0
- package/dist/compiled/lodash/take.d.ts +2 -0
- package/dist/compiled/lodash/takeRight.d.ts +2 -0
- package/dist/compiled/lodash/takeRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/takeWhile.d.ts +2 -0
- package/dist/compiled/lodash/tap.d.ts +2 -0
- package/dist/compiled/lodash/template.d.ts +2 -0
- package/dist/compiled/lodash/throttle.d.ts +2 -0
- package/dist/compiled/lodash/thru.d.ts +2 -0
- package/dist/compiled/lodash/times.d.ts +2 -0
- package/dist/compiled/lodash/toArray.d.ts +2 -0
- package/dist/compiled/lodash/toFinite.d.ts +2 -0
- package/dist/compiled/lodash/toInteger.d.ts +2 -0
- package/dist/compiled/lodash/toLength.d.ts +2 -0
- package/dist/compiled/lodash/toLower.d.ts +2 -0
- package/dist/compiled/lodash/toNumber.d.ts +2 -0
- package/dist/compiled/lodash/toPairs.d.ts +2 -0
- package/dist/compiled/lodash/toPairsIn.d.ts +2 -0
- package/dist/compiled/lodash/toPath.d.ts +2 -0
- package/dist/compiled/lodash/toPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/toSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/toString.d.ts +2 -0
- package/dist/compiled/lodash/toUpper.d.ts +2 -0
- package/dist/compiled/lodash/transform.d.ts +2 -0
- package/dist/compiled/lodash/trim.d.ts +2 -0
- package/dist/compiled/lodash/trimEnd.d.ts +2 -0
- package/dist/compiled/lodash/trimStart.d.ts +2 -0
- package/dist/compiled/lodash/truncate.d.ts +2 -0
- package/dist/compiled/lodash/unary.d.ts +2 -0
- package/dist/compiled/lodash/unescape.d.ts +2 -0
- package/dist/compiled/lodash/union.d.ts +2 -0
- package/dist/compiled/lodash/unionBy.d.ts +2 -0
- package/dist/compiled/lodash/unionWith.d.ts +2 -0
- package/dist/compiled/lodash/uniq.d.ts +2 -0
- package/dist/compiled/lodash/uniqBy.d.ts +2 -0
- package/dist/compiled/lodash/uniqWith.d.ts +2 -0
- package/dist/compiled/lodash/uniqueId.d.ts +2 -0
- package/dist/compiled/lodash/unset.d.ts +2 -0
- package/dist/compiled/lodash/unzip.d.ts +2 -0
- package/dist/compiled/lodash/unzipWith.d.ts +2 -0
- package/dist/compiled/lodash/update.d.ts +2 -0
- package/dist/compiled/lodash/updateWith.d.ts +2 -0
- package/dist/compiled/lodash/upperCase.d.ts +2 -0
- package/dist/compiled/lodash/upperFirst.d.ts +2 -0
- package/dist/compiled/lodash/values.d.ts +2 -0
- package/dist/compiled/lodash/valuesIn.d.ts +2 -0
- package/dist/compiled/lodash/without.d.ts +2 -0
- package/dist/compiled/lodash/words.d.ts +2 -0
- package/dist/compiled/lodash/wrap.d.ts +2 -0
- package/dist/compiled/lodash/xor.d.ts +2 -0
- package/dist/compiled/lodash/xorBy.d.ts +2 -0
- package/dist/compiled/lodash/xorWith.d.ts +2 -0
- package/dist/compiled/lodash/zip.d.ts +2 -0
- package/dist/compiled/lodash/zipObject.d.ts +2 -0
- package/dist/compiled/lodash/zipObjectDeep.d.ts +2 -0
- package/dist/compiled/lodash/zipWith.d.ts +2 -0
- package/dist/compiled/mime-types/declaration-licenses/@types_mime-types/LICENSE +21 -0
- package/dist/compiled/mime-types/index.d.ts +15 -12
- package/dist/compiled/mime-types/index.js +74 -28
- package/dist/compiled/mime-types/licenses-cjs.txt +52 -0
- package/dist/compiled/mime-types/package.json +1 -1
- package/dist/compiled/mime-types/provenance.json +19 -0
- package/dist/compiled/minimist/declaration-licenses/@types_minimist/LICENSE +21 -0
- package/dist/compiled/minimist/index.d.ts +3 -11
- package/dist/compiled/minimist/index.js +103 -104
- package/dist/compiled/minimist/licenses-cjs.txt +20 -0
- package/dist/compiled/minimist/package.json +1 -1
- package/dist/compiled/minimist/provenance.json +22 -0
- package/dist/compiled/nanoid/LICENSE +20 -0
- package/dist/compiled/nanoid/declaration-licenses/nanoid/LICENSE +20 -0
- package/dist/compiled/nanoid/index.d.mts +108 -0
- package/dist/compiled/nanoid/index.d.ts +31 -14
- package/dist/compiled/nanoid/index.js +117 -74
- package/dist/compiled/nanoid/index.mjs +98 -48
- package/dist/compiled/nanoid/licenses-cjs.txt +22 -0
- package/dist/compiled/nanoid/licenses-esm.txt +22 -0
- package/dist/compiled/nanoid/package.json +1 -1
- package/dist/compiled/nanoid/provenance.json +19 -0
- package/dist/compiled/ora/declaration-licenses/cli-spinners/license +9 -0
- package/dist/compiled/ora/declaration-licenses/ora/license +9 -0
- package/dist/compiled/ora/index.d.mts +501 -0
- package/dist/compiled/ora/index.d.ts +428 -204
- package/dist/compiled/ora/index.js +2121 -3893
- package/dist/compiled/ora/index.mjs +2155 -0
- package/dist/compiled/ora/licenses-cjs.txt +226 -0
- package/dist/compiled/ora/licenses-esm.txt +226 -0
- package/dist/compiled/ora/package.json +1 -1
- package/dist/compiled/ora/provenance.json +24 -0
- package/dist/compiled/pkg-up/declaration-licenses/@modern-js_compiled-pkg-up/license +9 -0
- package/dist/compiled/pkg-up/index.d.ts +9 -9
- package/dist/compiled/pkg-up/index.js +47 -14
- package/dist/compiled/pkg-up/licenses-cjs.txt +11 -0
- package/dist/compiled/pkg-up/package.json +1 -1
- package/dist/compiled/pkg-up/provenance.json +18 -0
- package/dist/compiled/semver/classes/comparator.d.ts +3 -3
- package/dist/compiled/semver/classes/range.d.ts +6 -6
- package/dist/compiled/semver/classes/semver.d.ts +11 -4
- package/dist/compiled/semver/declaration-licenses/@types_semver/LICENSE +21 -0
- package/dist/compiled/semver/functions/clean.d.ts +1 -1
- package/dist/compiled/semver/functions/cmp.d.ts +2 -2
- package/dist/compiled/semver/functions/coerce.d.ts +2 -2
- package/dist/compiled/semver/functions/compare-build.d.ts +7 -2
- package/dist/compiled/semver/functions/compare-loose.d.ts +4 -1
- package/dist/compiled/semver/functions/compare.d.ts +2 -2
- package/dist/compiled/semver/functions/diff.d.ts +3 -7
- package/dist/compiled/semver/functions/eq.d.ts +2 -2
- package/dist/compiled/semver/functions/gt.d.ts +2 -2
- package/dist/compiled/semver/functions/gte.d.ts +2 -2
- package/dist/compiled/semver/functions/inc.d.ts +15 -4
- package/dist/compiled/semver/functions/lt.d.ts +2 -2
- package/dist/compiled/semver/functions/lte.d.ts +2 -2
- package/dist/compiled/semver/functions/major.d.ts +2 -2
- package/dist/compiled/semver/functions/minor.d.ts +2 -2
- package/dist/compiled/semver/functions/neq.d.ts +2 -2
- package/dist/compiled/semver/functions/parse.d.ts +15 -4
- package/dist/compiled/semver/functions/patch.d.ts +2 -2
- package/dist/compiled/semver/functions/prerelease.d.ts +2 -2
- package/dist/compiled/semver/functions/rcompare.d.ts +2 -2
- package/dist/compiled/semver/functions/rsort.d.ts +2 -2
- package/dist/compiled/semver/functions/satisfies.d.ts +4 -4
- package/dist/compiled/semver/functions/sort.d.ts +2 -2
- package/dist/compiled/semver/functions/truncate.d.ts +10 -0
- package/dist/compiled/semver/functions/valid.d.ts +2 -2
- package/dist/compiled/semver/index.d.ts +82 -77
- package/dist/compiled/semver/index.js +639 -1026
- package/dist/compiled/semver/licenses-cjs.txt +17 -0
- package/dist/compiled/semver/package.json +1 -1
- package/dist/compiled/semver/preload.d.ts +2 -0
- package/dist/compiled/semver/provenance.json +22 -0
- package/dist/compiled/semver/ranges/gtr.d.ts +4 -4
- package/dist/compiled/semver/ranges/intersects.d.ts +3 -3
- package/dist/compiled/semver/ranges/ltr.d.ts +4 -4
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +5 -5
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +5 -5
- package/dist/compiled/semver/ranges/min-version.d.ts +3 -3
- package/dist/compiled/semver/ranges/outside.d.ts +5 -5
- package/dist/compiled/semver/ranges/simplify.d.ts +2 -2
- package/dist/compiled/semver/ranges/subset.d.ts +3 -7
- package/dist/compiled/semver/ranges/to-comparators.d.ts +2 -2
- package/dist/compiled/semver/ranges/valid.d.ts +3 -3
- package/dist/compiled/signale/declaration-licenses/@types_signale/LICENSE +21 -0
- package/dist/compiled/signale/index.d.ts +22 -29
- package/dist/compiled/signale/index.js +2934 -613
- package/dist/compiled/signale/license.md +21 -0
- package/dist/compiled/signale/licenses-cjs.txt +468 -0
- package/dist/compiled/signale/package.json +1 -1
- package/dist/compiled/signale/provenance.json +19 -0
- package/dist/compiled/slash/declaration-licenses/slash/license +9 -0
- package/dist/compiled/slash/index.d.mts +25 -0
- package/dist/compiled/slash/index.d.ts +4 -4
- package/dist/compiled/slash/index.js +31 -27
- package/dist/compiled/slash/index.mjs +25 -0
- package/dist/compiled/slash/license +1 -1
- package/dist/compiled/slash/licenses-cjs.txt +11 -0
- package/dist/compiled/slash/licenses-esm.txt +11 -0
- package/dist/compiled/slash/package.json +1 -1
- package/dist/compiled/slash/provenance.json +19 -0
- package/dist/compiled/strip-ansi/declaration-licenses/strip-ansi/license +9 -0
- package/dist/compiled/strip-ansi/index.d.mts +17 -0
- package/dist/compiled/strip-ansi/index.d.ts +2 -2
- package/dist/compiled/strip-ansi/index.js +39 -29
- package/dist/compiled/strip-ansi/index.mjs +33 -0
- package/dist/compiled/strip-ansi/license +1 -1
- package/dist/compiled/strip-ansi/licenses-cjs.txt +24 -0
- package/dist/compiled/strip-ansi/licenses-esm.txt +24 -0
- package/dist/compiled/strip-ansi/package.json +1 -1
- package/dist/compiled/strip-ansi/provenance.json +19 -0
- package/dist/compiled/tsconfig-paths/declaration-licenses/tsconfig-paths/LICENSE +21 -0
- package/dist/compiled/tsconfig-paths/index.d.mts +115 -0
- package/dist/compiled/tsconfig-paths/index.d.ts +115 -0
- package/dist/compiled/tsconfig-paths/index.js +256 -243
- package/dist/compiled/tsconfig-paths/index.mjs +2 -2
- package/dist/compiled/tsconfig-paths/licenses-cjs.txt +48 -0
- package/dist/compiled/tsconfig-paths/package.json +1 -1
- package/dist/compiled/tsconfig-paths/provenance.json +19 -0
- package/dist/compiled/upath/LICENSE +22 -0
- package/dist/compiled/upath/declaration-licenses/upath/LICENSE +22 -0
- package/dist/compiled/upath/index.d.mts +84 -0
- package/dist/compiled/upath/index.d.ts +84 -0
- package/dist/compiled/upath/index.js +173 -110
- package/dist/compiled/upath/index.mjs +236 -0
- package/dist/compiled/upath/licenses-cjs.txt +24 -0
- package/dist/compiled/upath/licenses-esm.txt +24 -0
- package/dist/compiled/upath/package.json +1 -1
- package/dist/compiled/upath/provenance.json +22 -0
- package/dist/compiled/url-join/declaration-licenses/url-join/LICENSE +21 -0
- package/dist/compiled/url-join/index.d.mts +9 -0
- package/dist/compiled/url-join/index.d.ts +3 -11
- package/dist/compiled/url-join/index.js +55 -55
- package/dist/compiled/url-join/index.mjs +50 -0
- package/dist/compiled/url-join/licenses-cjs.txt +23 -0
- package/dist/compiled/url-join/licenses-esm.txt +23 -0
- package/dist/compiled/url-join/package.json +1 -1
- package/dist/compiled/url-join/provenance.json +22 -0
- package/dist/esm/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm/cli/get/config.mjs +1 -1
- package/dist/esm/cli/is/config.mjs +1 -1
- package/dist/esm/cli/require.mjs +4 -5
- package/dist/esm/compiled.mjs +22 -31
- package/dist/esm/fast-glob.mjs +1 -0
- package/dist/esm/watch-options.mjs +0 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm-node/cli/get/config.mjs +1 -1
- package/dist/esm-node/cli/is/config.mjs +1 -1
- package/dist/esm-node/cli/require.mjs +4 -5
- package/dist/esm-node/compiled.mjs +22 -30
- package/dist/esm-node/fast-glob.mjs +2 -0
- package/dist/esm-node/watch-options.mjs +1 -0
- package/dist/types/cli/commands.d.ts +1 -1
- package/dist/types/cli/modulePath.d.ts +1 -1
- package/dist/types/cli/require.d.ts +0 -1
- package/dist/types/compiled.d.ts +30 -29
- package/dist/types/fast-glob.d.ts +1 -0
- package/dist/types/watch-options.d.ts +1 -0
- package/package.json +100 -36
- package/rslib.config.mts +20 -84
- package/dist/compiled/address/lib/address.d.ts +0 -28
- package/dist/compiled/browserslist/license +0 -20
- package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/license +0 -21
- package/dist/compiled/chokidar/types/index.d.ts +0 -188
- package/dist/compiled/commander/typings/index.d.ts +0 -890
- package/dist/compiled/debug/ms/index.d.ts +0 -25
- package/dist/compiled/dotenv/index.js +0 -101
- package/dist/compiled/dotenv/license +0 -23
- package/dist/compiled/dotenv/package.json +0 -1
- package/dist/compiled/dotenv/types/index.d.ts +0 -59
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/dist/compiled/fast-glob/index.js +0 -4665
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
- package/dist/compiled/fast-glob/license +0 -21
- package/dist/compiled/fast-glob/out/index.d.ts +0 -27
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
- package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
- package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
- package/dist/compiled/fast-glob/package.json +0 -1
- package/dist/compiled/filesize/filesize.d.ts +0 -131
- package/dist/compiled/filesize/license +0 -28
- package/dist/compiled/fs-extra/license +0 -15
- package/dist/compiled/glob/license +0 -21
- package/dist/compiled/glob/minimatch/index.d.ts +0 -204
- package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
- package/dist/compiled/inquirer/lib/prompts/base.d.ts +0 -100
- package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +0 -116
- package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +0 -53
- package/dist/compiled/inquirer/lib/prompts/editor.d.ts +0 -101
- package/dist/compiled/inquirer/lib/prompts/expand.d.ts +0 -149
- package/dist/compiled/inquirer/lib/prompts/input.d.ts +0 -82
- package/dist/compiled/inquirer/lib/prompts/list.d.ts +0 -89
- package/dist/compiled/inquirer/lib/prompts/number.d.ts +0 -32
- package/dist/compiled/inquirer/lib/prompts/password.d.ts +0 -82
- package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +0 -111
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
- package/dist/compiled/inquirer/lib/utils/events.d.ts +0 -72
- package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +0 -23
- package/dist/compiled/inquirer/lib/utils/paginator.d.ts +0 -55
- package/dist/compiled/inquirer/lib/utils/readline.d.ts +0 -56
- package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +0 -90
- package/dist/compiled/inquirer/lib/utils/utils.d.ts +0 -30
- package/dist/compiled/inquirer/license +0 -22
- package/dist/compiled/inquirer/rxjs/LICENSE.txt +0 -202
- package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/index.d.ts +0 -173
- package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +0 -175
- package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +0 -121
- package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +0 -92
- package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +0 -115
- package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +0 -227
- package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +0 -65
- package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +0 -200
- package/dist/compiled/inquirer/rxjs/internal/config.d.ts +0 -73
- package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +0 -42
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +0 -33
- package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +0 -27
- package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +0 -173
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +0 -76
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +0 -159
- package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +0 -24
- package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +0 -314
- package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +0 -82
- package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +0 -21
- package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +0 -40
- package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +0 -115
- package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +0 -126
- package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +0 -87
- package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +0 -58
- package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +0 -60
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +0 -47
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +0 -64
- package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +0 -119
- package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +0 -64
- package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +0 -52
- package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +0 -62
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +0 -18
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +0 -68
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +0 -44
- package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +0 -63
- package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +0 -56
- package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +0 -18
- package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +0 -69
- package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +0 -56
- package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +0 -29
- package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +0 -108
- package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +0 -28
- package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +0 -60
- package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +0 -36
- package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +0 -62
- package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +0 -20
- package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +0 -42
- package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +0 -78
- package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +0 -39
- package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +0 -255
- package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +0 -35
- package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +0 -33
- package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +0 -65
- package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +0 -26
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +0 -24
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +0 -69
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +0 -16
- package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +0 -88
- package/dist/compiled/inquirer/rxjs/internal/types.d.ts +0 -307
- package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +0 -21
- package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +0 -17
- package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +0 -20
- package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +0 -17
- package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +0 -16
- package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +0 -44
- package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/operators/index.d.ts +0 -114
- package/dist/compiled/inquirer/rxjs/testing/index.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +0 -3
- package/dist/compiled/inquirer/through/index.d.ts +0 -25
- package/dist/compiled/json5/lib/index.d.ts +0 -4
- package/dist/compiled/json5/lib/parse.d.ts +0 -15
- package/dist/compiled/json5/lib/stringify.d.ts +0 -89
- package/dist/compiled/nanoid/license +0 -20
- package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
- package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
- package/dist/compiled/upath/license +0 -22
- package/dist/compiled/upath/upath.d.ts +0 -241
- package/dist/compiled/webpack-chain/index.js +0 -1475
- package/dist/compiled/webpack-chain/license +0 -373
- package/dist/compiled/webpack-chain/package.json +0 -1
- package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
- package/dist/esm/rslib-runtime~1.mjs +0 -12
- /package/dist/compiled/commander/{license → LICENSE} +0 -0
- /package/dist/compiled/debug/{license → LICENSE} +0 -0
- /package/dist/compiled/{inquirer/types-license → debug/declaration-licenses/@types_debug/LICENSE} +0 -0
- /package/dist/compiled/dotenv-expand/{license → LICENSE} +0 -0
- /package/dist/compiled/js-yaml/{license → LICENSE} +0 -0
- /package/dist/compiled/lodash/{license → LICENSE} +0 -0
- /package/dist/compiled/mime-types/{license → LICENSE} +0 -0
- /package/dist/compiled/minimist/{license → LICENSE} +0 -0
- /package/dist/compiled/semver/{license → LICENSE} +0 -0
- /package/dist/compiled/tsconfig-paths/{license → LICENSE} +0 -0
- /package/dist/compiled/url-join/{license → LICENSE} +0 -0
|
@@ -1,1540 +1,1779 @@
|
|
|
1
1
|
(()=>{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
name() {
|
|
69
|
-
return this._name;
|
|
70
|
-
}
|
|
71
|
-
_concatValue(t, e) {
|
|
72
|
-
if (e === this.defaultValue || !Array.isArray(e)) return [
|
|
73
|
-
t
|
|
74
|
-
];
|
|
75
|
-
return e.concat(t);
|
|
76
|
-
}
|
|
77
|
-
default(t, e) {
|
|
78
|
-
this.defaultValue = t;
|
|
79
|
-
this.defaultValueDescription = e;
|
|
80
|
-
return this;
|
|
81
|
-
}
|
|
82
|
-
argParser(t) {
|
|
83
|
-
this.parseArg = t;
|
|
84
|
-
return this;
|
|
85
|
-
}
|
|
86
|
-
choices(t) {
|
|
87
|
-
this.argChoices = t.slice();
|
|
88
|
-
this.parseArg = (t, e)=>{
|
|
89
|
-
if (!this.argChoices.includes(t)) throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
90
|
-
if (this.variadic) return this._concatValue(t, e);
|
|
91
|
-
return t;
|
|
92
|
-
};
|
|
93
|
-
return this;
|
|
94
|
-
}
|
|
95
|
-
argRequired() {
|
|
2
|
+
"use strict";
|
|
3
|
+
var t = {};
|
|
4
|
+
(()=>{
|
|
5
|
+
t.d = (e, i)=>{
|
|
6
|
+
for(var n in i)if (t.o(i, n) && !t.o(e, n)) Object.defineProperty(e, n, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: i[n]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
t.o = (t, e)=>Object.prototype.hasOwnProperty.call(t, e);
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
t.r = (t)=>{
|
|
17
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(t, Symbol.toStringTag, {
|
|
18
|
+
value: "Module"
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(t, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
var e = {};
|
|
26
|
+
t.r(e);
|
|
27
|
+
t.d(e, {
|
|
28
|
+
Argument: ()=>Argument,
|
|
29
|
+
Command: ()=>Command,
|
|
30
|
+
CommanderError: ()=>CommanderError,
|
|
31
|
+
Help: ()=>Help,
|
|
32
|
+
InvalidArgumentError: ()=>InvalidArgumentError,
|
|
33
|
+
InvalidOptionArgumentError: ()=>InvalidArgumentError,
|
|
34
|
+
Option: ()=>Option,
|
|
35
|
+
createArgument: ()=>createArgument,
|
|
36
|
+
createCommand: ()=>createCommand,
|
|
37
|
+
createOption: ()=>createOption,
|
|
38
|
+
program: ()=>l
|
|
39
|
+
});
|
|
40
|
+
class CommanderError extends Error {
|
|
41
|
+
constructor(t, e, i){
|
|
42
|
+
super(i);
|
|
43
|
+
Error.captureStackTrace(this, this.constructor);
|
|
44
|
+
this.name = this.constructor.name;
|
|
45
|
+
this.code = e;
|
|
46
|
+
this.exitCode = t;
|
|
47
|
+
this.nestedError = void 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class InvalidArgumentError extends CommanderError {
|
|
51
|
+
constructor(t){
|
|
52
|
+
super(1, "commander.invalidArgument", t);
|
|
53
|
+
Error.captureStackTrace(this, this.constructor);
|
|
54
|
+
this.name = this.constructor.name;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class Argument {
|
|
58
|
+
constructor(t, e){
|
|
59
|
+
this.description = e || "";
|
|
60
|
+
this.variadic = false;
|
|
61
|
+
this.parseArg = void 0;
|
|
62
|
+
this.defaultValue = void 0;
|
|
63
|
+
this.defaultValueDescription = void 0;
|
|
64
|
+
this.argChoices = void 0;
|
|
65
|
+
switch(t[0]){
|
|
66
|
+
case "<":
|
|
96
67
|
this.required = true;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
68
|
+
this._name = t.slice(1, -1);
|
|
69
|
+
break;
|
|
70
|
+
case "[":
|
|
100
71
|
this.required = false;
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
this._name = t.slice(1, -1);
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
this.required = true;
|
|
76
|
+
this._name = t;
|
|
77
|
+
break;
|
|
103
78
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
79
|
+
if (this._name.endsWith("...")) {
|
|
80
|
+
this.variadic = true;
|
|
81
|
+
this._name = this._name.slice(0, -3);
|
|
107
82
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
83
|
+
}
|
|
84
|
+
name() {
|
|
85
|
+
return this._name;
|
|
86
|
+
}
|
|
87
|
+
_collectValue(t, e) {
|
|
88
|
+
if (e === this.defaultValue || !Array.isArray(e)) return [
|
|
89
|
+
t
|
|
90
|
+
];
|
|
91
|
+
e.push(t);
|
|
92
|
+
return e;
|
|
93
|
+
}
|
|
94
|
+
default(t, e) {
|
|
95
|
+
this.defaultValue = t;
|
|
96
|
+
this.defaultValueDescription = e;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
argParser(t) {
|
|
100
|
+
this.parseArg = t;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
choices(t) {
|
|
104
|
+
this.argChoices = t.slice();
|
|
105
|
+
this.parseArg = (t, e)=>{
|
|
106
|
+
if (!this.argChoices.includes(t)) throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
107
|
+
if (this.variadic) return this._collectValue(t, e);
|
|
108
|
+
return t;
|
|
109
|
+
};
|
|
110
|
+
return this;
|
|
111
|
+
}
|
|
112
|
+
argRequired() {
|
|
113
|
+
this.required = true;
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
argOptional() {
|
|
117
|
+
this.required = false;
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function humanReadableArgName(t) {
|
|
122
|
+
const e = t.name() + (true === t.variadic ? "..." : "");
|
|
123
|
+
return t.required ? "<" + e + ">" : "[" + e + "]";
|
|
124
|
+
}
|
|
125
|
+
const i = require("node:events");
|
|
126
|
+
const n = require("node:child_process");
|
|
127
|
+
const s = require("node:path");
|
|
128
|
+
const r = require("node:fs");
|
|
129
|
+
const o = require("node:process");
|
|
130
|
+
const a = require("node:util");
|
|
131
|
+
class Help {
|
|
132
|
+
constructor(){
|
|
133
|
+
this.helpWidth = void 0;
|
|
134
|
+
this.minWidthToWrap = 40;
|
|
135
|
+
this.sortSubcommands = false;
|
|
136
|
+
this.sortOptions = false;
|
|
137
|
+
this.showGlobalOptions = false;
|
|
138
|
+
}
|
|
139
|
+
prepareContext(t) {
|
|
140
|
+
this.helpWidth = this.helpWidth ?? t.helpWidth ?? 80;
|
|
141
|
+
}
|
|
142
|
+
visibleCommands(t) {
|
|
143
|
+
const e = t.commands.filter((t)=>!t._hidden);
|
|
144
|
+
const i = t._getHelpCommand();
|
|
145
|
+
if (i && !i._hidden) e.push(i);
|
|
146
|
+
if (this.sortSubcommands) e.sort((t, e)=>t.name().localeCompare(e.name()));
|
|
147
|
+
return e;
|
|
148
|
+
}
|
|
149
|
+
compareOptions(t, e) {
|
|
150
|
+
const getSortKey = (t)=>t.short ? t.short.replace(/^-/, "") : t.long.replace(/^--/, "");
|
|
151
|
+
return getSortKey(t).localeCompare(getSortKey(e));
|
|
152
|
+
}
|
|
153
|
+
visibleOptions(t) {
|
|
154
|
+
const e = t.options.filter((t)=>!t.hidden);
|
|
155
|
+
const i = t._getHelpOption();
|
|
156
|
+
if (i && !i.hidden) {
|
|
157
|
+
const n = i.short && t._findOption(i.short);
|
|
158
|
+
const s = i.long && t._findOption(i.long);
|
|
159
|
+
if (n || s) {
|
|
160
|
+
if (i.long && !s) e.push(t.createOption(i.long, i.description));
|
|
161
|
+
else if (i.short && !n) e.push(t.createOption(i.short, i.description));
|
|
162
|
+
} else e.push(i);
|
|
163
|
+
}
|
|
164
|
+
if (this.sortOptions) e.sort(this.compareOptions);
|
|
165
|
+
return e;
|
|
166
|
+
}
|
|
167
|
+
visibleGlobalOptions(t) {
|
|
168
|
+
if (!this.showGlobalOptions) return [];
|
|
169
|
+
const e = [];
|
|
170
|
+
for(let i = t.parent; i; i = i.parent){
|
|
171
|
+
const t = i.options.filter((t)=>!t.hidden);
|
|
172
|
+
e.push(...t);
|
|
173
|
+
}
|
|
174
|
+
if (this.sortOptions) e.sort(this.compareOptions);
|
|
175
|
+
return e;
|
|
176
|
+
}
|
|
177
|
+
visibleArguments(t) {
|
|
178
|
+
if (t._argsDescription) t.registeredArguments.forEach((e)=>{
|
|
179
|
+
e.description = e.description || t._argsDescription[e.name()] || "";
|
|
180
|
+
});
|
|
181
|
+
if (t.registeredArguments.find((t)=>t.description)) return t.registeredArguments;
|
|
182
|
+
return [];
|
|
183
|
+
}
|
|
184
|
+
subcommandTerm(t) {
|
|
185
|
+
const e = t.registeredArguments.map((t)=>humanReadableArgName(t)).join(" ");
|
|
186
|
+
return t._name + (t._aliases[0] ? "|" + t._aliases[0] : "") + (t.options.length ? " [options]" : "") + (e ? " " + e : "");
|
|
187
|
+
}
|
|
188
|
+
optionTerm(t) {
|
|
189
|
+
return t.flags;
|
|
190
|
+
}
|
|
191
|
+
argumentTerm(t) {
|
|
192
|
+
return t.name();
|
|
193
|
+
}
|
|
194
|
+
longestSubcommandTermLength(t, e) {
|
|
195
|
+
return e.visibleCommands(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleSubcommandTerm(e.subcommandTerm(i)))), 0);
|
|
196
|
+
}
|
|
197
|
+
longestOptionTermLength(t, e) {
|
|
198
|
+
return e.visibleOptions(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleOptionTerm(e.optionTerm(i)))), 0);
|
|
199
|
+
}
|
|
200
|
+
longestGlobalOptionTermLength(t, e) {
|
|
201
|
+
return e.visibleGlobalOptions(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleOptionTerm(e.optionTerm(i)))), 0);
|
|
202
|
+
}
|
|
203
|
+
longestArgumentTermLength(t, e) {
|
|
204
|
+
return e.visibleArguments(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleArgumentTerm(e.argumentTerm(i)))), 0);
|
|
205
|
+
}
|
|
206
|
+
commandUsage(t) {
|
|
207
|
+
let e = t._name;
|
|
208
|
+
if (t._aliases[0]) e = e + "|" + t._aliases[0];
|
|
209
|
+
let i = "";
|
|
210
|
+
for(let e = t.parent; e; e = e.parent)i = e.name() + " " + i;
|
|
211
|
+
return i + e + " " + t.usage();
|
|
212
|
+
}
|
|
213
|
+
commandDescription(t) {
|
|
214
|
+
return t.description();
|
|
215
|
+
}
|
|
216
|
+
subcommandDescription(t) {
|
|
217
|
+
return t.summary() || t.description();
|
|
218
|
+
}
|
|
219
|
+
optionDescription(t) {
|
|
220
|
+
const e = [];
|
|
221
|
+
if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
|
|
222
|
+
if (void 0 !== t.defaultValue) {
|
|
223
|
+
const i = t.required || t.optional || t.isBoolean() && "boolean" == typeof t.defaultValue;
|
|
224
|
+
if (i) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
|
|
225
|
+
}
|
|
226
|
+
if (void 0 !== t.presetArg && t.optional) e.push(`preset: ${JSON.stringify(t.presetArg)}`);
|
|
227
|
+
if (void 0 !== t.envVar) e.push(`env: ${t.envVar}`);
|
|
228
|
+
if (e.length > 0) {
|
|
229
|
+
const i = `(${e.join(", ")})`;
|
|
230
|
+
if (t.description) return `${t.description} ${i}`;
|
|
231
|
+
return i;
|
|
232
|
+
}
|
|
233
|
+
return t.description;
|
|
234
|
+
}
|
|
235
|
+
argumentDescription(t) {
|
|
236
|
+
const e = [];
|
|
237
|
+
if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
|
|
238
|
+
if (void 0 !== t.defaultValue) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
|
|
239
|
+
if (e.length > 0) {
|
|
240
|
+
const i = `(${e.join(", ")})`;
|
|
241
|
+
if (t.description) return `${t.description} ${i}`;
|
|
242
|
+
return i;
|
|
243
|
+
}
|
|
244
|
+
return t.description;
|
|
245
|
+
}
|
|
246
|
+
formatItemList(t, e, i) {
|
|
247
|
+
if (0 === e.length) return [];
|
|
248
|
+
return [
|
|
249
|
+
i.styleTitle(t),
|
|
250
|
+
...e,
|
|
251
|
+
""
|
|
252
|
+
];
|
|
253
|
+
}
|
|
254
|
+
groupItems(t, e, i) {
|
|
255
|
+
const n = new Map;
|
|
256
|
+
t.forEach((t)=>{
|
|
257
|
+
const e = i(t);
|
|
258
|
+
if (!n.has(e)) n.set(e, []);
|
|
259
|
+
});
|
|
260
|
+
e.forEach((t)=>{
|
|
261
|
+
const e = i(t);
|
|
262
|
+
if (!n.has(e)) n.set(e, []);
|
|
263
|
+
n.get(e).push(t);
|
|
264
|
+
});
|
|
265
|
+
return n;
|
|
266
|
+
}
|
|
267
|
+
formatHelp(t, e) {
|
|
268
|
+
const i = e.padWidth(t, e);
|
|
269
|
+
const n = e.helpWidth ?? 80;
|
|
270
|
+
function callFormatItem(t, n) {
|
|
271
|
+
return e.formatItem(t, i, n, e);
|
|
272
|
+
}
|
|
273
|
+
let s = [
|
|
274
|
+
`${e.styleTitle("Usage:")} ${e.styleUsage(e.commandUsage(t))}`,
|
|
275
|
+
""
|
|
276
|
+
];
|
|
277
|
+
const r = e.commandDescription(t);
|
|
278
|
+
if (r.length > 0) s = s.concat([
|
|
279
|
+
e.boxWrap(e.styleCommandDescription(r), n),
|
|
280
|
+
""
|
|
281
|
+
]);
|
|
282
|
+
const o = e.visibleArguments(t).map((t)=>callFormatItem(e.styleArgumentTerm(e.argumentTerm(t)), e.styleArgumentDescription(e.argumentDescription(t))));
|
|
283
|
+
s = s.concat(this.formatItemList("Arguments:", o, e));
|
|
284
|
+
const a = this.groupItems(t.options, e.visibleOptions(t), (t)=>t.helpGroupHeading ?? "Options:");
|
|
285
|
+
a.forEach((t, i)=>{
|
|
286
|
+
const n = t.map((t)=>callFormatItem(e.styleOptionTerm(e.optionTerm(t)), e.styleOptionDescription(e.optionDescription(t))));
|
|
287
|
+
s = s.concat(this.formatItemList(i, n, e));
|
|
288
|
+
});
|
|
289
|
+
if (e.showGlobalOptions) {
|
|
290
|
+
const i = e.visibleGlobalOptions(t).map((t)=>callFormatItem(e.styleOptionTerm(e.optionTerm(t)), e.styleOptionDescription(e.optionDescription(t))));
|
|
291
|
+
s = s.concat(this.formatItemList("Global Options:", i, e));
|
|
292
|
+
}
|
|
293
|
+
const h = this.groupItems(t.commands, e.visibleCommands(t), (t)=>t.helpGroup() || "Commands:");
|
|
294
|
+
h.forEach((t, i)=>{
|
|
295
|
+
const n = t.map((t)=>callFormatItem(e.styleSubcommandTerm(e.subcommandTerm(t)), e.styleSubcommandDescription(e.subcommandDescription(t))));
|
|
296
|
+
s = s.concat(this.formatItemList(i, n, e));
|
|
297
|
+
});
|
|
298
|
+
return s.join("\n");
|
|
299
|
+
}
|
|
300
|
+
displayWidth(t) {
|
|
301
|
+
return (0, a.stripVTControlCharacters)(t).length;
|
|
302
|
+
}
|
|
303
|
+
styleTitle(t) {
|
|
304
|
+
return t;
|
|
305
|
+
}
|
|
306
|
+
styleUsage(t) {
|
|
307
|
+
return t.split(" ").map((t)=>{
|
|
308
|
+
if ("[options]" === t) return this.styleOptionText(t);
|
|
309
|
+
if ("[command]" === t) return this.styleSubcommandText(t);
|
|
310
|
+
if ("[" === t[0] || "<" === t[0]) return this.styleArgumentText(t);
|
|
311
|
+
return this.styleCommandText(t);
|
|
312
|
+
}).join(" ");
|
|
313
|
+
}
|
|
314
|
+
styleCommandDescription(t) {
|
|
315
|
+
return this.styleDescriptionText(t);
|
|
316
|
+
}
|
|
317
|
+
styleOptionDescription(t) {
|
|
318
|
+
return this.styleDescriptionText(t);
|
|
319
|
+
}
|
|
320
|
+
styleSubcommandDescription(t) {
|
|
321
|
+
return this.styleDescriptionText(t);
|
|
322
|
+
}
|
|
323
|
+
styleArgumentDescription(t) {
|
|
324
|
+
return this.styleDescriptionText(t);
|
|
325
|
+
}
|
|
326
|
+
styleDescriptionText(t) {
|
|
327
|
+
return t;
|
|
328
|
+
}
|
|
329
|
+
styleOptionTerm(t) {
|
|
330
|
+
return this.styleOptionText(t);
|
|
331
|
+
}
|
|
332
|
+
styleSubcommandTerm(t) {
|
|
333
|
+
return t.split(" ").map((t)=>{
|
|
334
|
+
if ("[options]" === t) return this.styleOptionText(t);
|
|
335
|
+
if ("[" === t[0] || "<" === t[0]) return this.styleArgumentText(t);
|
|
336
|
+
return this.styleSubcommandText(t);
|
|
337
|
+
}).join(" ");
|
|
338
|
+
}
|
|
339
|
+
styleArgumentTerm(t) {
|
|
340
|
+
return this.styleArgumentText(t);
|
|
341
|
+
}
|
|
342
|
+
styleOptionText(t) {
|
|
343
|
+
return t;
|
|
344
|
+
}
|
|
345
|
+
styleArgumentText(t) {
|
|
346
|
+
return t;
|
|
347
|
+
}
|
|
348
|
+
styleSubcommandText(t) {
|
|
349
|
+
return t;
|
|
350
|
+
}
|
|
351
|
+
styleCommandText(t) {
|
|
352
|
+
return t;
|
|
353
|
+
}
|
|
354
|
+
padWidth(t, e) {
|
|
355
|
+
return Math.max(e.longestOptionTermLength(t, e), e.longestGlobalOptionTermLength(t, e), e.longestSubcommandTermLength(t, e), e.longestArgumentTermLength(t, e));
|
|
356
|
+
}
|
|
357
|
+
preformatted(t) {
|
|
358
|
+
return /\n[^\S\r\n]/.test(t);
|
|
359
|
+
}
|
|
360
|
+
formatItem(t, e, i, n) {
|
|
361
|
+
const s = 2;
|
|
362
|
+
const r = " ".repeat(s);
|
|
363
|
+
if (!i) return r + t;
|
|
364
|
+
const o = t.padEnd(e + t.length - n.displayWidth(t));
|
|
365
|
+
const a = 2;
|
|
366
|
+
const h = this.helpWidth ?? 80;
|
|
367
|
+
const l = h - e - a - s;
|
|
368
|
+
let u;
|
|
369
|
+
if (l < this.minWidthToWrap || n.preformatted(i)) u = i;
|
|
370
|
+
else {
|
|
371
|
+
const t = n.boxWrap(i, l);
|
|
372
|
+
u = t.replace(/\n/g, "\n" + " ".repeat(e + a));
|
|
373
|
+
}
|
|
374
|
+
return r + o + " ".repeat(a) + u.replace(/\n/g, `\n${r}`);
|
|
375
|
+
}
|
|
376
|
+
boxWrap(t, e) {
|
|
377
|
+
if (e < this.minWidthToWrap) return t;
|
|
378
|
+
const i = t.split(/\r\n|\n/);
|
|
379
|
+
const n = /[\s]*[^\s]+/g;
|
|
380
|
+
const s = [];
|
|
381
|
+
i.forEach((t)=>{
|
|
382
|
+
const i = t.match(n);
|
|
383
|
+
if (null === i) return void s.push("");
|
|
384
|
+
let r = [
|
|
385
|
+
i.shift()
|
|
386
|
+
];
|
|
387
|
+
let o = this.displayWidth(r[0]);
|
|
388
|
+
i.forEach((t)=>{
|
|
389
|
+
const i = this.displayWidth(t);
|
|
390
|
+
if (o + i <= e) {
|
|
391
|
+
r.push(t);
|
|
392
|
+
o += i;
|
|
393
|
+
return;
|
|
284
394
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
return this._addImplicitHelpCommand;
|
|
290
|
-
}
|
|
291
|
-
hook(t, e) {
|
|
292
|
-
const i = [
|
|
293
|
-
"preSubcommand",
|
|
294
|
-
"preAction",
|
|
295
|
-
"postAction"
|
|
395
|
+
s.push(r.join(""));
|
|
396
|
+
const n = t.trimStart();
|
|
397
|
+
r = [
|
|
398
|
+
n
|
|
296
399
|
];
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
400
|
+
o = this.displayWidth(n);
|
|
401
|
+
});
|
|
402
|
+
s.push(r.join(""));
|
|
403
|
+
});
|
|
404
|
+
return s.join("\n");
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
class Option {
|
|
408
|
+
constructor(t, e){
|
|
409
|
+
this.flags = t;
|
|
410
|
+
this.description = e || "";
|
|
411
|
+
this.required = t.includes("<");
|
|
412
|
+
this.optional = t.includes("[");
|
|
413
|
+
this.variadic = /\w\.\.\.[>\]]$/.test(t);
|
|
414
|
+
this.mandatory = false;
|
|
415
|
+
const i = splitOptionFlags(t);
|
|
416
|
+
this.short = i.shortFlag;
|
|
417
|
+
this.long = i.longFlag;
|
|
418
|
+
this.negate = false;
|
|
419
|
+
if (this.long) this.negate = this.long.startsWith("--no-");
|
|
420
|
+
this.defaultValue = void 0;
|
|
421
|
+
this.defaultValueDescription = void 0;
|
|
422
|
+
this.presetArg = void 0;
|
|
423
|
+
this.envVar = void 0;
|
|
424
|
+
this.parseArg = void 0;
|
|
425
|
+
this.hidden = false;
|
|
426
|
+
this.argChoices = void 0;
|
|
427
|
+
this.conflictsWith = [];
|
|
428
|
+
this.implied = void 0;
|
|
429
|
+
this.helpGroupHeading = void 0;
|
|
430
|
+
}
|
|
431
|
+
default(t, e) {
|
|
432
|
+
this.defaultValue = t;
|
|
433
|
+
this.defaultValueDescription = e;
|
|
434
|
+
return this;
|
|
435
|
+
}
|
|
436
|
+
preset(t) {
|
|
437
|
+
this.presetArg = t;
|
|
438
|
+
return this;
|
|
439
|
+
}
|
|
440
|
+
conflicts(t) {
|
|
441
|
+
this.conflictsWith = this.conflictsWith.concat(t);
|
|
442
|
+
return this;
|
|
443
|
+
}
|
|
444
|
+
implies(t) {
|
|
445
|
+
let e = t;
|
|
446
|
+
if ("string" == typeof t) e = {
|
|
447
|
+
[t]: true
|
|
448
|
+
};
|
|
449
|
+
this.implied = Object.assign(this.implied || {}, e);
|
|
450
|
+
return this;
|
|
451
|
+
}
|
|
452
|
+
env(t) {
|
|
453
|
+
this.envVar = t;
|
|
454
|
+
return this;
|
|
455
|
+
}
|
|
456
|
+
argParser(t) {
|
|
457
|
+
this.parseArg = t;
|
|
458
|
+
return this;
|
|
459
|
+
}
|
|
460
|
+
makeOptionMandatory(t = true) {
|
|
461
|
+
this.mandatory = !!t;
|
|
462
|
+
return this;
|
|
463
|
+
}
|
|
464
|
+
hideHelp(t = true) {
|
|
465
|
+
this.hidden = !!t;
|
|
466
|
+
return this;
|
|
467
|
+
}
|
|
468
|
+
_collectValue(t, e) {
|
|
469
|
+
if (e === this.defaultValue || !Array.isArray(e)) return [
|
|
470
|
+
t
|
|
471
|
+
];
|
|
472
|
+
e.push(t);
|
|
473
|
+
return e;
|
|
474
|
+
}
|
|
475
|
+
choices(t) {
|
|
476
|
+
this.argChoices = t.slice();
|
|
477
|
+
this.parseArg = (t, e)=>{
|
|
478
|
+
if (!this.argChoices.includes(t)) throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
479
|
+
if (this.variadic) return this._collectValue(t, e);
|
|
480
|
+
return t;
|
|
481
|
+
};
|
|
482
|
+
return this;
|
|
483
|
+
}
|
|
484
|
+
name() {
|
|
485
|
+
if (this.long) return this.long.replace(/^--/, "");
|
|
486
|
+
return this.short.replace(/^-/, "");
|
|
487
|
+
}
|
|
488
|
+
attributeName() {
|
|
489
|
+
if (this.negate) return camelcase(this.name().replace(/^no-/, ""));
|
|
490
|
+
return camelcase(this.name());
|
|
491
|
+
}
|
|
492
|
+
helpGroup(t) {
|
|
493
|
+
this.helpGroupHeading = t;
|
|
494
|
+
return this;
|
|
495
|
+
}
|
|
496
|
+
is(t) {
|
|
497
|
+
return this.short === t || this.long === t;
|
|
498
|
+
}
|
|
499
|
+
isBoolean() {
|
|
500
|
+
return !this.required && !this.optional && !this.negate;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
class DualOptions {
|
|
504
|
+
constructor(t){
|
|
505
|
+
this.positiveOptions = new Map;
|
|
506
|
+
this.negativeOptions = new Map;
|
|
507
|
+
this.dualOptions = new Set;
|
|
508
|
+
t.forEach((t)=>{
|
|
509
|
+
if (t.negate) this.negativeOptions.set(t.attributeName(), t);
|
|
510
|
+
else this.positiveOptions.set(t.attributeName(), t);
|
|
511
|
+
});
|
|
512
|
+
this.negativeOptions.forEach((t, e)=>{
|
|
513
|
+
if (this.positiveOptions.has(e)) this.dualOptions.add(e);
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
valueFromOption(t, e) {
|
|
517
|
+
const i = e.attributeName();
|
|
518
|
+
if (!this.dualOptions.has(i)) return true;
|
|
519
|
+
const n = this.negativeOptions.get(i).presetArg;
|
|
520
|
+
const s = void 0 !== n ? n : false;
|
|
521
|
+
return e.negate === (s === t);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function camelcase(t) {
|
|
525
|
+
return t.split("-").reduce((t, e)=>t + e[0].toUpperCase() + e.slice(1));
|
|
526
|
+
}
|
|
527
|
+
function splitOptionFlags(t) {
|
|
528
|
+
let e;
|
|
529
|
+
let i;
|
|
530
|
+
const n = /^-[^-]$/;
|
|
531
|
+
const s = /^--[^-]/;
|
|
532
|
+
const r = t.split(/[ |,]+/).concat("guard");
|
|
533
|
+
if (n.test(r[0])) e = r.shift();
|
|
534
|
+
if (s.test(r[0])) i = r.shift();
|
|
535
|
+
if (!e && n.test(r[0])) e = r.shift();
|
|
536
|
+
if (!e && s.test(r[0])) {
|
|
537
|
+
e = i;
|
|
538
|
+
i = r.shift();
|
|
539
|
+
}
|
|
540
|
+
if (r[0].startsWith("-")) {
|
|
541
|
+
const e = r[0];
|
|
542
|
+
const i = `option creation failed due to '${e}' in option flags '${t}'`;
|
|
543
|
+
if (/^-[^-][^-]/.test(e)) throw new Error(`${i}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);
|
|
544
|
+
if (n.test(e)) throw new Error(`${i}\n- too many short flags`);
|
|
545
|
+
if (s.test(e)) throw new Error(`${i}\n- too many long flags`);
|
|
546
|
+
throw new Error(`${i}\n- unrecognised flag format`);
|
|
547
|
+
}
|
|
548
|
+
if (void 0 === e && void 0 === i) throw new Error(`option creation failed due to no flags found in '${t}'.`);
|
|
549
|
+
return {
|
|
550
|
+
shortFlag: e,
|
|
551
|
+
longFlag: i
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
const h = 3;
|
|
555
|
+
function editDistance(t, e) {
|
|
556
|
+
if (Math.abs(t.length - e.length) > h) return Math.max(t.length, e.length);
|
|
557
|
+
const i = [];
|
|
558
|
+
for(let e = 0; e <= t.length; e++)i[e] = [
|
|
559
|
+
e
|
|
560
|
+
];
|
|
561
|
+
for(let t = 0; t <= e.length; t++)i[0][t] = t;
|
|
562
|
+
for(let n = 1; n <= e.length; n++)for(let s = 1; s <= t.length; s++){
|
|
563
|
+
let r;
|
|
564
|
+
r = t[s - 1] === e[n - 1] ? 0 : 1;
|
|
565
|
+
i[s][n] = Math.min(i[s - 1][n] + 1, i[s][n - 1] + 1, i[s - 1][n - 1] + r);
|
|
566
|
+
if (s > 1 && n > 1 && t[s - 1] === e[n - 2] && t[s - 2] === e[n - 1]) i[s][n] = Math.min(i[s][n], i[s - 2][n - 2] + 1);
|
|
567
|
+
}
|
|
568
|
+
return i[t.length][e.length];
|
|
569
|
+
}
|
|
570
|
+
function suggestSimilar(t, e) {
|
|
571
|
+
if (!e || 0 === e.length) return "";
|
|
572
|
+
e = Array.from(new Set(e));
|
|
573
|
+
const i = t.startsWith("--");
|
|
574
|
+
if (i) {
|
|
575
|
+
t = t.slice(2);
|
|
576
|
+
e = e.map((t)=>t.slice(2));
|
|
577
|
+
}
|
|
578
|
+
let n = [];
|
|
579
|
+
let s = h;
|
|
580
|
+
const r = .4;
|
|
581
|
+
e.forEach((e)=>{
|
|
582
|
+
if (e.length <= 1) return;
|
|
583
|
+
const i = editDistance(t, e);
|
|
584
|
+
const o = Math.max(t.length, e.length);
|
|
585
|
+
const a = (o - i) / o;
|
|
586
|
+
if (a > r) {
|
|
587
|
+
if (i < s) {
|
|
588
|
+
s = i;
|
|
589
|
+
n = [
|
|
300
590
|
e
|
|
301
591
|
];
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
592
|
+
} else if (i === s) n.push(e);
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
n.sort((t, e)=>t.localeCompare(e));
|
|
596
|
+
if (i) n = n.map((t)=>`--${t}`);
|
|
597
|
+
if (n.length > 1) return `\n(Did you mean one of ${n.join(", ")}?)`;
|
|
598
|
+
if (1 === n.length) return `\n(Did you mean ${n[0]}?)`;
|
|
599
|
+
return "";
|
|
600
|
+
}
|
|
601
|
+
class Command extends i.EventEmitter {
|
|
602
|
+
constructor(t){
|
|
603
|
+
super();
|
|
604
|
+
this.commands = [];
|
|
605
|
+
this.options = [];
|
|
606
|
+
this.parent = null;
|
|
607
|
+
this._allowUnknownOption = false;
|
|
608
|
+
this._allowExcessArguments = false;
|
|
609
|
+
this.registeredArguments = [];
|
|
610
|
+
this._args = this.registeredArguments;
|
|
611
|
+
this.args = [];
|
|
612
|
+
this.rawArgs = [];
|
|
613
|
+
this.processedArgs = [];
|
|
614
|
+
this._scriptPath = null;
|
|
615
|
+
this._name = t || "";
|
|
616
|
+
this._optionValues = {};
|
|
617
|
+
this._optionValueSources = {};
|
|
618
|
+
this._storeOptionsAsProperties = false;
|
|
619
|
+
this._actionHandler = null;
|
|
620
|
+
this._executableHandler = false;
|
|
621
|
+
this._executableFile = null;
|
|
622
|
+
this._executableDir = null;
|
|
623
|
+
this._defaultCommandName = null;
|
|
624
|
+
this._exitCallback = null;
|
|
625
|
+
this._aliases = [];
|
|
626
|
+
this._combineFlagAndOptionalValue = true;
|
|
627
|
+
this._description = "";
|
|
628
|
+
this._summary = "";
|
|
629
|
+
this._argsDescription = void 0;
|
|
630
|
+
this._enablePositionalOptions = false;
|
|
631
|
+
this._passThroughOptions = false;
|
|
632
|
+
this._lifeCycleHooks = {};
|
|
633
|
+
this._showHelpAfterError = false;
|
|
634
|
+
this._showSuggestionAfterError = true;
|
|
635
|
+
this._savedState = null;
|
|
636
|
+
this._outputConfiguration = {
|
|
637
|
+
writeOut: (t)=>o.stdout.write(t),
|
|
638
|
+
writeErr: (t)=>o.stderr.write(t),
|
|
639
|
+
outputError: (t, e)=>e(t),
|
|
640
|
+
getOutHelpWidth: ()=>o.stdout.isTTY ? o.stdout.columns : void 0,
|
|
641
|
+
getErrHelpWidth: ()=>o.stderr.isTTY ? o.stderr.columns : void 0,
|
|
642
|
+
getOutHasColors: ()=>useColor() ?? (o.stdout.isTTY && o.stdout.hasColors?.()),
|
|
643
|
+
getErrHasColors: ()=>useColor() ?? (o.stderr.isTTY && o.stderr.hasColors?.()),
|
|
644
|
+
stripColor: (t)=>(0, a.stripVTControlCharacters)(t)
|
|
645
|
+
};
|
|
646
|
+
this._hidden = false;
|
|
647
|
+
this._helpOption = void 0;
|
|
648
|
+
this._addImplicitHelpCommand = void 0;
|
|
649
|
+
this._helpCommand = void 0;
|
|
650
|
+
this._helpConfiguration = {};
|
|
651
|
+
this._helpGroupHeading = void 0;
|
|
652
|
+
this._defaultCommandGroup = void 0;
|
|
653
|
+
this._defaultOptionGroup = void 0;
|
|
654
|
+
}
|
|
655
|
+
copyInheritedSettings(t) {
|
|
656
|
+
this._outputConfiguration = t._outputConfiguration;
|
|
657
|
+
this._helpOption = t._helpOption;
|
|
658
|
+
this._helpCommand = t._helpCommand;
|
|
659
|
+
this._helpConfiguration = t._helpConfiguration;
|
|
660
|
+
this._exitCallback = t._exitCallback;
|
|
661
|
+
this._storeOptionsAsProperties = t._storeOptionsAsProperties;
|
|
662
|
+
this._combineFlagAndOptionalValue = t._combineFlagAndOptionalValue;
|
|
663
|
+
this._allowExcessArguments = t._allowExcessArguments;
|
|
664
|
+
this._enablePositionalOptions = t._enablePositionalOptions;
|
|
665
|
+
this._showHelpAfterError = t._showHelpAfterError;
|
|
666
|
+
this._showSuggestionAfterError = t._showSuggestionAfterError;
|
|
667
|
+
return this;
|
|
668
|
+
}
|
|
669
|
+
_getCommandAndAncestors() {
|
|
670
|
+
const t = [];
|
|
671
|
+
for(let e = this; e; e = e.parent)t.push(e);
|
|
672
|
+
return t;
|
|
673
|
+
}
|
|
674
|
+
command(t, e, i) {
|
|
675
|
+
let n = e;
|
|
676
|
+
let s = i;
|
|
677
|
+
if ("object" == typeof n && null !== n) {
|
|
678
|
+
s = n;
|
|
679
|
+
n = null;
|
|
680
|
+
}
|
|
681
|
+
s = s || {};
|
|
682
|
+
const [, r, o] = t.match(/([^ ]+) *(.*)/);
|
|
683
|
+
const a = this.createCommand(r);
|
|
684
|
+
if (n) {
|
|
685
|
+
a.description(n);
|
|
686
|
+
a._executableHandler = true;
|
|
687
|
+
}
|
|
688
|
+
if (s.isDefault) this._defaultCommandName = a._name;
|
|
689
|
+
a._hidden = !!(s.noHelp || s.hidden);
|
|
690
|
+
a._executableFile = s.executableFile || null;
|
|
691
|
+
if (o) a.arguments(o);
|
|
692
|
+
this._registerCommand(a);
|
|
693
|
+
a.parent = this;
|
|
694
|
+
a.copyInheritedSettings(this);
|
|
695
|
+
if (n) return this;
|
|
696
|
+
return a;
|
|
697
|
+
}
|
|
698
|
+
createCommand(t) {
|
|
699
|
+
return new Command(t);
|
|
700
|
+
}
|
|
701
|
+
createHelp() {
|
|
702
|
+
return Object.assign(new Help, this.configureHelp());
|
|
703
|
+
}
|
|
704
|
+
configureHelp(t) {
|
|
705
|
+
if (void 0 === t) return this._helpConfiguration;
|
|
706
|
+
this._helpConfiguration = t;
|
|
707
|
+
return this;
|
|
708
|
+
}
|
|
709
|
+
configureOutput(t) {
|
|
710
|
+
if (void 0 === t) return this._outputConfiguration;
|
|
711
|
+
this._outputConfiguration = {
|
|
712
|
+
...this._outputConfiguration,
|
|
713
|
+
...t
|
|
714
|
+
};
|
|
715
|
+
return this;
|
|
716
|
+
}
|
|
717
|
+
showHelpAfterError(t = true) {
|
|
718
|
+
if ("string" != typeof t) t = !!t;
|
|
719
|
+
this._showHelpAfterError = t;
|
|
720
|
+
return this;
|
|
721
|
+
}
|
|
722
|
+
showSuggestionAfterError(t = true) {
|
|
723
|
+
this._showSuggestionAfterError = !!t;
|
|
724
|
+
return this;
|
|
725
|
+
}
|
|
726
|
+
addCommand(t, e) {
|
|
727
|
+
if (!t._name) throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`);
|
|
728
|
+
e = e || {};
|
|
729
|
+
if (e.isDefault) this._defaultCommandName = t._name;
|
|
730
|
+
if (e.noHelp || e.hidden) t._hidden = true;
|
|
731
|
+
this._registerCommand(t);
|
|
732
|
+
t.parent = this;
|
|
733
|
+
t._checkForBrokenPassThrough();
|
|
734
|
+
return this;
|
|
735
|
+
}
|
|
736
|
+
createArgument(t, e) {
|
|
737
|
+
return new Argument(t, e);
|
|
738
|
+
}
|
|
739
|
+
argument(t, e, i, n) {
|
|
740
|
+
const s = this.createArgument(t, e);
|
|
741
|
+
if ("function" == typeof i) s.default(n).argParser(i);
|
|
742
|
+
else s.default(i);
|
|
743
|
+
this.addArgument(s);
|
|
744
|
+
return this;
|
|
745
|
+
}
|
|
746
|
+
arguments(t) {
|
|
747
|
+
t.trim().split(/ +/).forEach((t)=>{
|
|
748
|
+
this.argument(t);
|
|
749
|
+
});
|
|
750
|
+
return this;
|
|
751
|
+
}
|
|
752
|
+
addArgument(t) {
|
|
753
|
+
const e = this.registeredArguments.slice(-1)[0];
|
|
754
|
+
if (e?.variadic) throw new Error(`only the last argument can be variadic '${e.name()}'`);
|
|
755
|
+
if (t.required && void 0 !== t.defaultValue && void 0 === t.parseArg) throw new Error(`a default value for a required argument is never used: '${t.name()}'`);
|
|
756
|
+
this.registeredArguments.push(t);
|
|
757
|
+
return this;
|
|
758
|
+
}
|
|
759
|
+
helpCommand(t, e) {
|
|
760
|
+
if ("boolean" == typeof t) {
|
|
761
|
+
this._addImplicitHelpCommand = t;
|
|
762
|
+
if (t && this._defaultCommandGroup) this._initCommandGroup(this._getHelpCommand());
|
|
763
|
+
return this;
|
|
764
|
+
}
|
|
765
|
+
const i = t ?? "help [command]";
|
|
766
|
+
const [, n, s] = i.match(/([^ ]+) *(.*)/);
|
|
767
|
+
const r = e ?? "display help for command";
|
|
768
|
+
const o = this.createCommand(n);
|
|
769
|
+
o.helpOption(false);
|
|
770
|
+
if (s) o.arguments(s);
|
|
771
|
+
if (r) o.description(r);
|
|
772
|
+
this._addImplicitHelpCommand = true;
|
|
773
|
+
this._helpCommand = o;
|
|
774
|
+
if (t || e) this._initCommandGroup(o);
|
|
775
|
+
return this;
|
|
776
|
+
}
|
|
777
|
+
addHelpCommand(t, e) {
|
|
778
|
+
if ("object" != typeof t) {
|
|
779
|
+
this.helpCommand(t, e);
|
|
780
|
+
return this;
|
|
781
|
+
}
|
|
782
|
+
this._addImplicitHelpCommand = true;
|
|
783
|
+
this._helpCommand = t;
|
|
784
|
+
this._initCommandGroup(t);
|
|
785
|
+
return this;
|
|
786
|
+
}
|
|
787
|
+
_getHelpCommand() {
|
|
788
|
+
const t = this._addImplicitHelpCommand ?? (this.commands.length && !this._actionHandler && !this._findCommand("help"));
|
|
789
|
+
if (t) {
|
|
790
|
+
if (void 0 === this._helpCommand) this.helpCommand(void 0, void 0);
|
|
791
|
+
return this._helpCommand;
|
|
792
|
+
}
|
|
793
|
+
return null;
|
|
794
|
+
}
|
|
795
|
+
hook(t, e) {
|
|
796
|
+
const i = [
|
|
797
|
+
"preSubcommand",
|
|
798
|
+
"preAction",
|
|
799
|
+
"postAction"
|
|
800
|
+
];
|
|
801
|
+
if (!i.includes(t)) throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${i.join("', '")}'`);
|
|
802
|
+
if (this._lifeCycleHooks[t]) this._lifeCycleHooks[t].push(e);
|
|
803
|
+
else this._lifeCycleHooks[t] = [
|
|
804
|
+
e
|
|
805
|
+
];
|
|
806
|
+
return this;
|
|
807
|
+
}
|
|
808
|
+
exitOverride(t) {
|
|
809
|
+
if (t) this._exitCallback = t;
|
|
810
|
+
else this._exitCallback = (t)=>{
|
|
811
|
+
if ("commander.executeSubCommandAsync" !== t.code) throw t;
|
|
812
|
+
};
|
|
813
|
+
return this;
|
|
814
|
+
}
|
|
815
|
+
_exit(t, e, i) {
|
|
816
|
+
if (this._exitCallback) this._exitCallback(new CommanderError(t, e, i));
|
|
817
|
+
o.exit(t);
|
|
818
|
+
}
|
|
819
|
+
action(t) {
|
|
820
|
+
const listener = (e)=>{
|
|
821
|
+
const i = this.registeredArguments.length;
|
|
822
|
+
const n = e.slice(0, i);
|
|
823
|
+
if (this._storeOptionsAsProperties) n[i] = this;
|
|
824
|
+
else n[i] = this.opts();
|
|
825
|
+
n.push(this);
|
|
826
|
+
return t.apply(this, n);
|
|
827
|
+
};
|
|
828
|
+
this._actionHandler = listener;
|
|
829
|
+
return this;
|
|
830
|
+
}
|
|
831
|
+
createOption(t, e) {
|
|
832
|
+
return new Option(t, e);
|
|
833
|
+
}
|
|
834
|
+
_callParseArg(t, e, i, n) {
|
|
835
|
+
try {
|
|
836
|
+
return t.parseArg(e, i);
|
|
837
|
+
} catch (t) {
|
|
838
|
+
if ("commander.invalidArgument" === t.code) {
|
|
839
|
+
const e = `${n} ${t.message}`;
|
|
840
|
+
this.error(e, {
|
|
841
|
+
exitCode: t.exitCode,
|
|
842
|
+
code: t.code
|
|
364
843
|
});
|
|
365
|
-
return this;
|
|
366
|
-
}
|
|
367
|
-
_optionEx(t, e, i, n, s) {
|
|
368
|
-
if ("object" == typeof e && e instanceof p) throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");
|
|
369
|
-
const r = this.createOption(e, i);
|
|
370
|
-
r.makeOptionMandatory(!!t.mandatory);
|
|
371
|
-
if ("function" == typeof n) r.default(s).argParser(n);
|
|
372
|
-
else if (n instanceof RegExp) {
|
|
373
|
-
const t = n;
|
|
374
|
-
n = (e, i)=>{
|
|
375
|
-
const n = t.exec(e);
|
|
376
|
-
return n ? n[0] : i;
|
|
377
|
-
};
|
|
378
|
-
r.default(s).argParser(n);
|
|
379
|
-
} else r.default(n);
|
|
380
|
-
return this.addOption(r);
|
|
381
|
-
}
|
|
382
|
-
option(t, e, i, n) {
|
|
383
|
-
return this._optionEx({}, t, e, i, n);
|
|
384
|
-
}
|
|
385
|
-
requiredOption(t, e, i, n) {
|
|
386
|
-
return this._optionEx({
|
|
387
|
-
mandatory: true
|
|
388
|
-
}, t, e, i, n);
|
|
389
844
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
845
|
+
throw t;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
_registerOption(t) {
|
|
849
|
+
const e = t.short && this._findOption(t.short) || t.long && this._findOption(t.long);
|
|
850
|
+
if (e) {
|
|
851
|
+
const i = t.long && this._findOption(t.long) ? t.long : t.short;
|
|
852
|
+
throw new Error(`Cannot add option '${t.flags}'${this._name && ` to command '${this._name}'`} due to conflicting flag '${i}'\n- already used by option '${e.flags}'`);
|
|
853
|
+
}
|
|
854
|
+
this._initOptionGroup(t);
|
|
855
|
+
this.options.push(t);
|
|
856
|
+
}
|
|
857
|
+
_registerCommand(t) {
|
|
858
|
+
const knownBy = (t)=>[
|
|
859
|
+
t.name()
|
|
860
|
+
].concat(t.aliases());
|
|
861
|
+
const e = knownBy(t).find((t)=>this._findCommand(t));
|
|
862
|
+
if (e) {
|
|
863
|
+
const i = knownBy(this._findCommand(e)).join("|");
|
|
864
|
+
const n = knownBy(t).join("|");
|
|
865
|
+
throw new Error(`cannot add command '${n}' as already have command '${i}'`);
|
|
866
|
+
}
|
|
867
|
+
this._initCommandGroup(t);
|
|
868
|
+
this.commands.push(t);
|
|
869
|
+
}
|
|
870
|
+
addOption(t) {
|
|
871
|
+
this._registerOption(t);
|
|
872
|
+
const e = t.name();
|
|
873
|
+
const i = t.attributeName();
|
|
874
|
+
if (void 0 !== t.defaultValue) this.setOptionValueWithSource(i, t.defaultValue, "default");
|
|
875
|
+
const handleOptionValue = (e, n, s)=>{
|
|
876
|
+
if (null == e && void 0 !== t.presetArg) e = t.presetArg;
|
|
877
|
+
const r = this.getOptionValue(i);
|
|
878
|
+
if (null !== e && t.parseArg) e = this._callParseArg(t, e, r, n);
|
|
879
|
+
else if (null !== e && t.variadic) e = t._collectValue(e, r);
|
|
880
|
+
if (null == e) e = t.negate ? false : t.isBoolean() || t.optional ? true : "";
|
|
881
|
+
this.setOptionValueWithSource(i, e, s);
|
|
882
|
+
};
|
|
883
|
+
this.on("option:" + e, (e)=>{
|
|
884
|
+
const i = `error: option '${t.flags}' argument '${e}' is invalid.`;
|
|
885
|
+
handleOptionValue(e, i, "cli");
|
|
886
|
+
});
|
|
887
|
+
if (t.envVar) this.on("optionEnv:" + e, (e)=>{
|
|
888
|
+
const i = `error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;
|
|
889
|
+
handleOptionValue(e, i, "env");
|
|
890
|
+
});
|
|
891
|
+
return this;
|
|
892
|
+
}
|
|
893
|
+
_optionEx(t, e, i, n, s) {
|
|
894
|
+
if ("object" == typeof e && e instanceof Option) throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");
|
|
895
|
+
const r = this.createOption(e, i);
|
|
896
|
+
r.makeOptionMandatory(!!t.mandatory);
|
|
897
|
+
if ("function" == typeof n) r.default(s).argParser(n);
|
|
898
|
+
else if (n instanceof RegExp) {
|
|
899
|
+
const t = n;
|
|
900
|
+
n = (e, i)=>{
|
|
901
|
+
const n = t.exec(e);
|
|
902
|
+
return n ? n[0] : i;
|
|
903
|
+
};
|
|
904
|
+
r.default(s).argParser(n);
|
|
905
|
+
} else r.default(n);
|
|
906
|
+
return this.addOption(r);
|
|
907
|
+
}
|
|
908
|
+
option(t, e, i, n) {
|
|
909
|
+
return this._optionEx({}, t, e, i, n);
|
|
910
|
+
}
|
|
911
|
+
requiredOption(t, e, i, n) {
|
|
912
|
+
return this._optionEx({
|
|
913
|
+
mandatory: true
|
|
914
|
+
}, t, e, i, n);
|
|
915
|
+
}
|
|
916
|
+
combineFlagAndOptionalValue(t = true) {
|
|
917
|
+
this._combineFlagAndOptionalValue = !!t;
|
|
918
|
+
return this;
|
|
919
|
+
}
|
|
920
|
+
allowUnknownOption(t = true) {
|
|
921
|
+
this._allowUnknownOption = !!t;
|
|
922
|
+
return this;
|
|
923
|
+
}
|
|
924
|
+
allowExcessArguments(t = true) {
|
|
925
|
+
this._allowExcessArguments = !!t;
|
|
926
|
+
return this;
|
|
927
|
+
}
|
|
928
|
+
enablePositionalOptions(t = true) {
|
|
929
|
+
this._enablePositionalOptions = !!t;
|
|
930
|
+
return this;
|
|
931
|
+
}
|
|
932
|
+
passThroughOptions(t = true) {
|
|
933
|
+
this._passThroughOptions = !!t;
|
|
934
|
+
this._checkForBrokenPassThrough();
|
|
935
|
+
return this;
|
|
936
|
+
}
|
|
937
|
+
_checkForBrokenPassThrough() {
|
|
938
|
+
if (this.parent && this._passThroughOptions && !this.parent._enablePositionalOptions) throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`);
|
|
939
|
+
}
|
|
940
|
+
storeOptionsAsProperties(t = true) {
|
|
941
|
+
if (this.options.length) throw new Error("call .storeOptionsAsProperties() before adding options");
|
|
942
|
+
if (Object.keys(this._optionValues).length) throw new Error("call .storeOptionsAsProperties() before setting option values");
|
|
943
|
+
this._storeOptionsAsProperties = !!t;
|
|
944
|
+
return this;
|
|
945
|
+
}
|
|
946
|
+
getOptionValue(t) {
|
|
947
|
+
if (this._storeOptionsAsProperties) return this[t];
|
|
948
|
+
return this._optionValues[t];
|
|
949
|
+
}
|
|
950
|
+
setOptionValue(t, e) {
|
|
951
|
+
return this.setOptionValueWithSource(t, e, void 0);
|
|
952
|
+
}
|
|
953
|
+
setOptionValueWithSource(t, e, i) {
|
|
954
|
+
if (this._storeOptionsAsProperties) this[t] = e;
|
|
955
|
+
else this._optionValues[t] = e;
|
|
956
|
+
this._optionValueSources[t] = i;
|
|
957
|
+
return this;
|
|
958
|
+
}
|
|
959
|
+
getOptionValueSource(t) {
|
|
960
|
+
return this._optionValueSources[t];
|
|
961
|
+
}
|
|
962
|
+
getOptionValueSourceWithGlobals(t) {
|
|
963
|
+
let e;
|
|
964
|
+
this._getCommandAndAncestors().forEach((i)=>{
|
|
965
|
+
if (void 0 !== i.getOptionValueSource(t)) e = i.getOptionValueSource(t);
|
|
966
|
+
});
|
|
967
|
+
return e;
|
|
968
|
+
}
|
|
969
|
+
_prepareUserArgs(t, e) {
|
|
970
|
+
if (void 0 !== t && !Array.isArray(t)) throw new Error("first parameter to parse must be array or undefined");
|
|
971
|
+
e = e || {};
|
|
972
|
+
if (void 0 === t && void 0 === e.from) {
|
|
973
|
+
if (o.versions?.electron) e.from = "electron";
|
|
974
|
+
const t = o.execArgv ?? [];
|
|
975
|
+
if (t.includes("-e") || t.includes("--eval") || t.includes("-p") || t.includes("--print")) e.from = "eval";
|
|
976
|
+
}
|
|
977
|
+
if (void 0 === t) t = o.argv;
|
|
978
|
+
this.rawArgs = t.slice();
|
|
979
|
+
let i;
|
|
980
|
+
switch(e.from){
|
|
981
|
+
case void 0:
|
|
982
|
+
case "node":
|
|
983
|
+
this._scriptPath = t[1];
|
|
984
|
+
i = t.slice(2);
|
|
985
|
+
break;
|
|
986
|
+
case "electron":
|
|
987
|
+
if (o.defaultApp) {
|
|
988
|
+
this._scriptPath = t[1];
|
|
989
|
+
i = t.slice(2);
|
|
990
|
+
} else i = t.slice(1);
|
|
991
|
+
break;
|
|
992
|
+
case "user":
|
|
993
|
+
i = t.slice(0);
|
|
994
|
+
break;
|
|
995
|
+
case "eval":
|
|
996
|
+
i = t.slice(1);
|
|
997
|
+
break;
|
|
998
|
+
default:
|
|
999
|
+
throw new Error(`unexpected parse option { from: '${e.from}' }`);
|
|
1000
|
+
}
|
|
1001
|
+
if (!this._name && this._scriptPath) this.nameFromFilename(this._scriptPath);
|
|
1002
|
+
this._name = this._name || "program";
|
|
1003
|
+
return i;
|
|
1004
|
+
}
|
|
1005
|
+
parse(t, e) {
|
|
1006
|
+
this._prepareForParse();
|
|
1007
|
+
const i = this._prepareUserArgs(t, e);
|
|
1008
|
+
this._parseCommand([], i);
|
|
1009
|
+
return this;
|
|
1010
|
+
}
|
|
1011
|
+
async parseAsync(t, e) {
|
|
1012
|
+
this._prepareForParse();
|
|
1013
|
+
const i = this._prepareUserArgs(t, e);
|
|
1014
|
+
await this._parseCommand([], i);
|
|
1015
|
+
return this;
|
|
1016
|
+
}
|
|
1017
|
+
_prepareForParse() {
|
|
1018
|
+
if (null === this._savedState) {
|
|
1019
|
+
this.options.filter((t)=>t.negate && void 0 === t.defaultValue && void 0 === this.getOptionValue(t.attributeName())).forEach((t)=>{
|
|
1020
|
+
const e = t.long.replace(/^--no-/, "--");
|
|
1021
|
+
if (!this._findOption(e)) this.setOptionValueWithSource(t.attributeName(), true, "default");
|
|
1022
|
+
});
|
|
1023
|
+
this.saveStateBeforeParse();
|
|
1024
|
+
} else this.restoreStateBeforeParse();
|
|
1025
|
+
}
|
|
1026
|
+
saveStateBeforeParse() {
|
|
1027
|
+
this._savedState = {
|
|
1028
|
+
_name: this._name,
|
|
1029
|
+
_optionValues: {
|
|
1030
|
+
...this._optionValues
|
|
1031
|
+
},
|
|
1032
|
+
_optionValueSources: {
|
|
1033
|
+
...this._optionValueSources
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
restoreStateBeforeParse() {
|
|
1038
|
+
if (this._storeOptionsAsProperties) throw new Error(`Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties`);
|
|
1039
|
+
this._name = this._savedState._name;
|
|
1040
|
+
this._scriptPath = null;
|
|
1041
|
+
this.rawArgs = [];
|
|
1042
|
+
this._optionValues = {
|
|
1043
|
+
...this._savedState._optionValues
|
|
1044
|
+
};
|
|
1045
|
+
this._optionValueSources = {
|
|
1046
|
+
...this._savedState._optionValueSources
|
|
1047
|
+
};
|
|
1048
|
+
this.args = [];
|
|
1049
|
+
this.processedArgs = [];
|
|
1050
|
+
}
|
|
1051
|
+
_checkForMissingExecutable(t, e, i) {
|
|
1052
|
+
if (r.existsSync(t)) return;
|
|
1053
|
+
const n = e ? `searched for local subcommand relative to directory '${e}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
1054
|
+
const s = `'${t}' does not exist\n - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${n}`;
|
|
1055
|
+
throw new Error(s);
|
|
1056
|
+
}
|
|
1057
|
+
_executeSubCommand(t, e) {
|
|
1058
|
+
e = e.slice();
|
|
1059
|
+
const i = [
|
|
1060
|
+
".js",
|
|
1061
|
+
".ts",
|
|
1062
|
+
".tsx",
|
|
1063
|
+
".mjs",
|
|
1064
|
+
".cjs"
|
|
1065
|
+
];
|
|
1066
|
+
function findFile(t, e) {
|
|
1067
|
+
const n = s.resolve(t, e);
|
|
1068
|
+
if (r.existsSync(n)) return n;
|
|
1069
|
+
if (i.includes(s.extname(e))) return;
|
|
1070
|
+
const o = i.find((t)=>r.existsSync(`${n}${t}`));
|
|
1071
|
+
if (o) return `${n}${o}`;
|
|
1072
|
+
}
|
|
1073
|
+
this._checkForMissingMandatoryOptions();
|
|
1074
|
+
this._checkForConflictingOptions();
|
|
1075
|
+
let a = t._executableFile || `${this._name}-${t._name}`;
|
|
1076
|
+
let h = this._executableDir || "";
|
|
1077
|
+
if (this._scriptPath) {
|
|
1078
|
+
let t;
|
|
1079
|
+
try {
|
|
1080
|
+
t = r.realpathSync(this._scriptPath);
|
|
1081
|
+
} catch {
|
|
1082
|
+
t = this._scriptPath;
|
|
1083
|
+
}
|
|
1084
|
+
h = s.resolve(s.dirname(t), h);
|
|
1085
|
+
}
|
|
1086
|
+
if (h) {
|
|
1087
|
+
let e = findFile(h, a);
|
|
1088
|
+
if (!e && !t._executableFile && this._scriptPath) {
|
|
1089
|
+
const i = s.basename(this._scriptPath, s.extname(this._scriptPath));
|
|
1090
|
+
if (i !== this._name) e = findFile(h, `${i}-${t._name}`);
|
|
431
1091
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
1092
|
+
a = e || a;
|
|
1093
|
+
}
|
|
1094
|
+
const l = i.includes(s.extname(a));
|
|
1095
|
+
let u;
|
|
1096
|
+
if ("win32" !== o.platform) if (l) {
|
|
1097
|
+
e.unshift(a);
|
|
1098
|
+
e = incrementNodeInspectorPort(o.execArgv).concat(e);
|
|
1099
|
+
u = n.spawn(o.argv[0], e, {
|
|
1100
|
+
stdio: "inherit"
|
|
1101
|
+
});
|
|
1102
|
+
} else u = n.spawn(a, e, {
|
|
1103
|
+
stdio: "inherit"
|
|
1104
|
+
});
|
|
1105
|
+
else {
|
|
1106
|
+
this._checkForMissingExecutable(a, h, t._name);
|
|
1107
|
+
e.unshift(a);
|
|
1108
|
+
e = incrementNodeInspectorPort(o.execArgv).concat(e);
|
|
1109
|
+
u = n.spawn(o.execPath, e, {
|
|
1110
|
+
stdio: "inherit"
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
if (!u.killed) {
|
|
1114
|
+
const t = [
|
|
1115
|
+
"SIGUSR1",
|
|
1116
|
+
"SIGUSR2",
|
|
1117
|
+
"SIGTERM",
|
|
1118
|
+
"SIGINT",
|
|
1119
|
+
"SIGHUP"
|
|
1120
|
+
];
|
|
1121
|
+
t.forEach((t)=>{
|
|
1122
|
+
o.on(t, ()=>{
|
|
1123
|
+
if (false === u.killed && null === u.exitCode) u.kill(t);
|
|
436
1124
|
});
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
c = s.spawn(a.argv[0], e, {
|
|
524
|
-
stdio: "inherit"
|
|
525
|
-
});
|
|
526
|
-
} else c = s.spawn(l, e, {
|
|
527
|
-
stdio: "inherit"
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
const c = this._exitCallback;
|
|
1128
|
+
u.on("close", (t)=>{
|
|
1129
|
+
t = t ?? 1;
|
|
1130
|
+
if (c) c(new CommanderError(t, "commander.executeSubCommandAsync", "(close)"));
|
|
1131
|
+
else o.exit(t);
|
|
1132
|
+
});
|
|
1133
|
+
u.on("error", (e)=>{
|
|
1134
|
+
if ("ENOENT" === e.code) this._checkForMissingExecutable(a, h, t._name);
|
|
1135
|
+
else if ("EACCES" === e.code) throw new Error(`'${a}' not executable`);
|
|
1136
|
+
if (c) {
|
|
1137
|
+
const t = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
1138
|
+
t.nestedError = e;
|
|
1139
|
+
c(t);
|
|
1140
|
+
} else o.exit(1);
|
|
1141
|
+
});
|
|
1142
|
+
this.runningCommand = u;
|
|
1143
|
+
}
|
|
1144
|
+
_dispatchSubcommand(t, e, i) {
|
|
1145
|
+
const n = this._findCommand(t);
|
|
1146
|
+
if (!n) this.help({
|
|
1147
|
+
error: true
|
|
1148
|
+
});
|
|
1149
|
+
n._prepareForParse();
|
|
1150
|
+
let s;
|
|
1151
|
+
s = this._chainOrCallSubCommandHook(s, n, "preSubcommand");
|
|
1152
|
+
s = this._chainOrCall(s, ()=>{
|
|
1153
|
+
if (!n._executableHandler) return n._parseCommand(e, i);
|
|
1154
|
+
else this._executeSubCommand(n, e.concat(i));
|
|
1155
|
+
});
|
|
1156
|
+
return s;
|
|
1157
|
+
}
|
|
1158
|
+
_dispatchHelpCommand(t) {
|
|
1159
|
+
if (!t) this.help();
|
|
1160
|
+
const e = this._findCommand(t);
|
|
1161
|
+
if (e && !e._executableHandler) e.help();
|
|
1162
|
+
return this._dispatchSubcommand(t, [], [
|
|
1163
|
+
this._getHelpOption()?.long ?? this._getHelpOption()?.short ?? "--help"
|
|
1164
|
+
]);
|
|
1165
|
+
}
|
|
1166
|
+
_checkNumberOfArguments() {
|
|
1167
|
+
this.registeredArguments.forEach((t, e)=>{
|
|
1168
|
+
if (t.required && null == this.args[e]) this.missingArgument(t.name());
|
|
1169
|
+
});
|
|
1170
|
+
if (this.registeredArguments.length > 0 && this.registeredArguments[this.registeredArguments.length - 1].variadic) return;
|
|
1171
|
+
if (this.args.length > this.registeredArguments.length) this._excessArguments(this.args);
|
|
1172
|
+
}
|
|
1173
|
+
_processArguments() {
|
|
1174
|
+
const myParseArg = (t, e, i)=>{
|
|
1175
|
+
let n = e;
|
|
1176
|
+
if (null !== e && t.parseArg) {
|
|
1177
|
+
const s = `error: command-argument value '${e}' is invalid for argument '${t.name()}'.`;
|
|
1178
|
+
n = this._callParseArg(t, e, i, s);
|
|
1179
|
+
}
|
|
1180
|
+
return n;
|
|
1181
|
+
};
|
|
1182
|
+
this._checkNumberOfArguments();
|
|
1183
|
+
const t = [];
|
|
1184
|
+
this.registeredArguments.forEach((e, i)=>{
|
|
1185
|
+
let n = e.defaultValue;
|
|
1186
|
+
if (e.variadic) {
|
|
1187
|
+
if (i < this.args.length) {
|
|
1188
|
+
n = this.args.slice(i);
|
|
1189
|
+
if (e.parseArg) n = n.reduce((t, i)=>myParseArg(e, i, t), e.defaultValue);
|
|
1190
|
+
} else if (void 0 === n) n = [];
|
|
1191
|
+
} else if (i < this.args.length) {
|
|
1192
|
+
n = this.args[i];
|
|
1193
|
+
if (e.parseArg) n = myParseArg(e, n, e.defaultValue);
|
|
1194
|
+
}
|
|
1195
|
+
t[i] = n;
|
|
1196
|
+
});
|
|
1197
|
+
this.processedArgs = t;
|
|
1198
|
+
}
|
|
1199
|
+
_chainOrCall(t, e) {
|
|
1200
|
+
if (t?.then && "function" == typeof t.then) return t.then(()=>e());
|
|
1201
|
+
return e();
|
|
1202
|
+
}
|
|
1203
|
+
_chainOrCallHooks(t, e) {
|
|
1204
|
+
let i = t;
|
|
1205
|
+
const n = [];
|
|
1206
|
+
this._getCommandAndAncestors().reverse().filter((t)=>void 0 !== t._lifeCycleHooks[e]).forEach((t)=>{
|
|
1207
|
+
t._lifeCycleHooks[e].forEach((e)=>{
|
|
1208
|
+
n.push({
|
|
1209
|
+
hookedCommand: t,
|
|
1210
|
+
callback: e
|
|
528
1211
|
});
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
1212
|
+
});
|
|
1213
|
+
});
|
|
1214
|
+
if ("postAction" === e) n.reverse();
|
|
1215
|
+
n.forEach((t)=>{
|
|
1216
|
+
i = this._chainOrCall(i, ()=>t.callback(t.hookedCommand, this));
|
|
1217
|
+
});
|
|
1218
|
+
return i;
|
|
1219
|
+
}
|
|
1220
|
+
_chainOrCallSubCommandHook(t, e, i) {
|
|
1221
|
+
let n = t;
|
|
1222
|
+
if (void 0 !== this._lifeCycleHooks[i]) this._lifeCycleHooks[i].forEach((t)=>{
|
|
1223
|
+
n = this._chainOrCall(n, ()=>t(this, e));
|
|
1224
|
+
});
|
|
1225
|
+
return n;
|
|
1226
|
+
}
|
|
1227
|
+
_parseCommand(t, e) {
|
|
1228
|
+
const i = this.parseOptions(e);
|
|
1229
|
+
this._parseOptionsEnv();
|
|
1230
|
+
this._parseOptionsImplied();
|
|
1231
|
+
t = t.concat(i.operands);
|
|
1232
|
+
e = i.unknown;
|
|
1233
|
+
this.args = t.concat(e);
|
|
1234
|
+
if (t && this._findCommand(t[0])) return this._dispatchSubcommand(t[0], t.slice(1), e);
|
|
1235
|
+
if (this._getHelpCommand() && t[0] === this._getHelpCommand().name()) return this._dispatchHelpCommand(t[1]);
|
|
1236
|
+
if (this._defaultCommandName) {
|
|
1237
|
+
this._outputHelpIfRequested(e);
|
|
1238
|
+
return this._dispatchSubcommand(this._defaultCommandName, t, e);
|
|
1239
|
+
}
|
|
1240
|
+
if (this.commands.length && 0 === this.args.length && !this._actionHandler && !this._defaultCommandName) this.help({
|
|
1241
|
+
error: true
|
|
1242
|
+
});
|
|
1243
|
+
this._outputHelpIfRequested(i.unknown);
|
|
1244
|
+
this._checkForMissingMandatoryOptions();
|
|
1245
|
+
this._checkForConflictingOptions();
|
|
1246
|
+
const checkForUnknownOptions = ()=>{
|
|
1247
|
+
if (i.unknown.length > 0) this.unknownOption(i.unknown[0]);
|
|
1248
|
+
};
|
|
1249
|
+
const n = `command:${this.name()}`;
|
|
1250
|
+
if (this._actionHandler) {
|
|
1251
|
+
checkForUnknownOptions();
|
|
1252
|
+
this._processArguments();
|
|
1253
|
+
let i;
|
|
1254
|
+
i = this._chainOrCallHooks(i, "preAction");
|
|
1255
|
+
i = this._chainOrCall(i, ()=>this._actionHandler(this.processedArgs));
|
|
1256
|
+
if (this.parent) i = this._chainOrCall(i, ()=>{
|
|
1257
|
+
this.parent.emit(n, t, e);
|
|
1258
|
+
});
|
|
1259
|
+
i = this._chainOrCallHooks(i, "postAction");
|
|
1260
|
+
return i;
|
|
1261
|
+
}
|
|
1262
|
+
if (this.parent?.listenerCount(n)) {
|
|
1263
|
+
checkForUnknownOptions();
|
|
1264
|
+
this._processArguments();
|
|
1265
|
+
this.parent.emit(n, t, e);
|
|
1266
|
+
} else if (t.length) {
|
|
1267
|
+
if (this._findCommand("*")) return this._dispatchSubcommand("*", t, e);
|
|
1268
|
+
if (this.listenerCount("command:*")) this.emit("command:*", t, e);
|
|
1269
|
+
else if (this.commands.length) this.unknownCommand();
|
|
1270
|
+
else {
|
|
1271
|
+
checkForUnknownOptions();
|
|
1272
|
+
this._processArguments();
|
|
1273
|
+
}
|
|
1274
|
+
} else if (this.commands.length) {
|
|
1275
|
+
checkForUnknownOptions();
|
|
1276
|
+
this.help({
|
|
1277
|
+
error: true
|
|
1278
|
+
});
|
|
1279
|
+
} else {
|
|
1280
|
+
checkForUnknownOptions();
|
|
1281
|
+
this._processArguments();
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
_findCommand(t) {
|
|
1285
|
+
if (!t) return;
|
|
1286
|
+
return this.commands.find((e)=>e._name === t || e._aliases.includes(t));
|
|
1287
|
+
}
|
|
1288
|
+
_findOption(t) {
|
|
1289
|
+
return this.options.find((e)=>e.is(t));
|
|
1290
|
+
}
|
|
1291
|
+
_checkForMissingMandatoryOptions() {
|
|
1292
|
+
this._getCommandAndAncestors().forEach((t)=>{
|
|
1293
|
+
t.options.forEach((e)=>{
|
|
1294
|
+
if (e.mandatory && void 0 === t.getOptionValue(e.attributeName())) t.missingMandatoryOptionValue(e);
|
|
1295
|
+
});
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
_checkForConflictingLocalOptions() {
|
|
1299
|
+
const t = this.options.filter((t)=>{
|
|
1300
|
+
const e = t.attributeName();
|
|
1301
|
+
if (void 0 === this.getOptionValue(e)) return false;
|
|
1302
|
+
return "default" !== this.getOptionValueSource(e);
|
|
1303
|
+
});
|
|
1304
|
+
const e = t.filter((t)=>t.conflictsWith.length > 0);
|
|
1305
|
+
e.forEach((e)=>{
|
|
1306
|
+
const i = t.find((t)=>e.conflictsWith.includes(t.attributeName()));
|
|
1307
|
+
if (i) this._conflictingOption(e, i);
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
_checkForConflictingOptions() {
|
|
1311
|
+
this._getCommandAndAncestors().forEach((t)=>{
|
|
1312
|
+
t._checkForConflictingLocalOptions();
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
parseOptions(t) {
|
|
1316
|
+
const e = [];
|
|
1317
|
+
const i = [];
|
|
1318
|
+
let n = e;
|
|
1319
|
+
function maybeOption(t) {
|
|
1320
|
+
return t.length > 1 && "-" === t[0];
|
|
1321
|
+
}
|
|
1322
|
+
const negativeNumberArg = (t)=>{
|
|
1323
|
+
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(t)) return false;
|
|
1324
|
+
return !this._getCommandAndAncestors().some((t)=>t.options.map((t)=>t.short).some((t)=>/^-\d$/.test(t)));
|
|
1325
|
+
};
|
|
1326
|
+
let s = null;
|
|
1327
|
+
let r = null;
|
|
1328
|
+
let o = 0;
|
|
1329
|
+
while(o < t.length || r){
|
|
1330
|
+
const a = r ?? t[o++];
|
|
1331
|
+
r = null;
|
|
1332
|
+
if ("--" === a) {
|
|
1333
|
+
if (n === i) n.push(a);
|
|
1334
|
+
n.push(...t.slice(o));
|
|
1335
|
+
break;
|
|
1336
|
+
}
|
|
1337
|
+
if (s && (!maybeOption(a) || negativeNumberArg(a))) {
|
|
1338
|
+
this.emit(`option:${s.name()}`, a);
|
|
1339
|
+
continue;
|
|
1340
|
+
}
|
|
1341
|
+
s = null;
|
|
1342
|
+
if (maybeOption(a)) {
|
|
1343
|
+
const e = this._findOption(a);
|
|
1344
|
+
if (e) {
|
|
1345
|
+
if (e.required) {
|
|
1346
|
+
const i = t[o++];
|
|
1347
|
+
if (void 0 === i) this.optionMissingArgument(e);
|
|
1348
|
+
this.emit(`option:${e.name()}`, i);
|
|
1349
|
+
} else if (e.optional) {
|
|
1350
|
+
let i = null;
|
|
1351
|
+
if (o < t.length && (!maybeOption(t[o]) || negativeNumberArg(t[o]))) i = t[o++];
|
|
1352
|
+
this.emit(`option:${e.name()}`, i);
|
|
1353
|
+
} else this.emit(`option:${e.name()}`);
|
|
1354
|
+
s = e.variadic ? e : null;
|
|
1355
|
+
continue;
|
|
549
1356
|
}
|
|
550
|
-
const p = this._exitCallback;
|
|
551
|
-
if (p) c.on("close", ()=>{
|
|
552
|
-
p(new u(a.exitCode || 0, "commander.executeSubCommandAsync", "(close)"));
|
|
553
|
-
});
|
|
554
|
-
else c.on("close", a.exit.bind(a));
|
|
555
|
-
c.on("error", (e)=>{
|
|
556
|
-
if ("ENOENT" === e.code) {
|
|
557
|
-
const e = h ? `searched for local subcommand relative to directory '${h}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
558
|
-
const i = `'${l}' does not exist\n - if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${e}`;
|
|
559
|
-
throw new Error(i);
|
|
560
|
-
}
|
|
561
|
-
if ("EACCES" === e.code) throw new Error(`'${l}' not executable`);
|
|
562
|
-
if (p) {
|
|
563
|
-
const t = new u(1, "commander.executeSubCommandAsync", "(error)");
|
|
564
|
-
t.nestedError = e;
|
|
565
|
-
p(t);
|
|
566
|
-
} else a.exit(1);
|
|
567
|
-
});
|
|
568
|
-
this.runningCommand = c;
|
|
569
|
-
}
|
|
570
|
-
_dispatchSubcommand(t, e, i) {
|
|
571
|
-
const n = this._findCommand(t);
|
|
572
|
-
if (!n) this.help({
|
|
573
|
-
error: true
|
|
574
|
-
});
|
|
575
|
-
let s;
|
|
576
|
-
s = this._chainOrCallSubCommandHook(s, n, "preSubcommand");
|
|
577
|
-
s = this._chainOrCall(s, ()=>{
|
|
578
|
-
if (!n._executableHandler) return n._parseCommand(e, i);
|
|
579
|
-
this._executeSubCommand(n, e.concat(i));
|
|
580
|
-
});
|
|
581
|
-
return s;
|
|
582
|
-
}
|
|
583
|
-
_checkNumberOfArguments() {
|
|
584
|
-
this._args.forEach((t, e)=>{
|
|
585
|
-
if (t.required && null == this.args[e]) this.missingArgument(t.name());
|
|
586
|
-
});
|
|
587
|
-
if (this._args.length > 0 && this._args[this._args.length - 1].variadic) return;
|
|
588
|
-
if (this.args.length > this._args.length) this._excessArguments(this.args);
|
|
589
|
-
}
|
|
590
|
-
_processArguments() {
|
|
591
|
-
const myParseArg = (t, e, i)=>{
|
|
592
|
-
let n = e;
|
|
593
|
-
if (null !== e && t.parseArg) try {
|
|
594
|
-
n = t.parseArg(e, i);
|
|
595
|
-
} catch (i) {
|
|
596
|
-
if ("commander.invalidArgument" === i.code) {
|
|
597
|
-
const n = `error: command-argument value '${e}' is invalid for argument '${t.name()}'. ${i.message}`;
|
|
598
|
-
this.error(n, {
|
|
599
|
-
exitCode: i.exitCode,
|
|
600
|
-
code: i.code
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
throw i;
|
|
604
|
-
}
|
|
605
|
-
return n;
|
|
606
|
-
};
|
|
607
|
-
this._checkNumberOfArguments();
|
|
608
|
-
const t = [];
|
|
609
|
-
this._args.forEach((e, i)=>{
|
|
610
|
-
let n = e.defaultValue;
|
|
611
|
-
if (e.variadic) {
|
|
612
|
-
if (i < this.args.length) {
|
|
613
|
-
n = this.args.slice(i);
|
|
614
|
-
if (e.parseArg) n = n.reduce((t, i)=>myParseArg(e, i, t), e.defaultValue);
|
|
615
|
-
} else if (void 0 === n) n = [];
|
|
616
|
-
} else if (i < this.args.length) {
|
|
617
|
-
n = this.args[i];
|
|
618
|
-
if (e.parseArg) n = myParseArg(e, n, e.defaultValue);
|
|
619
|
-
}
|
|
620
|
-
t[i] = n;
|
|
621
|
-
});
|
|
622
|
-
this.processedArgs = t;
|
|
623
1357
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
_chainOrCallHooks(t, e) {
|
|
629
|
-
let i = t;
|
|
630
|
-
const n = [];
|
|
631
|
-
getCommandAndParents(this).reverse().filter((t)=>void 0 !== t._lifeCycleHooks[e]).forEach((t)=>{
|
|
632
|
-
t._lifeCycleHooks[e].forEach((e)=>{
|
|
633
|
-
n.push({
|
|
634
|
-
hookedCommand: t,
|
|
635
|
-
callback: e
|
|
636
|
-
});
|
|
637
|
-
});
|
|
638
|
-
});
|
|
639
|
-
if ("postAction" === e) n.reverse();
|
|
640
|
-
n.forEach((t)=>{
|
|
641
|
-
i = this._chainOrCall(i, ()=>t.callback(t.hookedCommand, this));
|
|
642
|
-
});
|
|
643
|
-
return i;
|
|
644
|
-
}
|
|
645
|
-
_chainOrCallSubCommandHook(t, e, i) {
|
|
646
|
-
let n = t;
|
|
647
|
-
if (void 0 !== this._lifeCycleHooks[i]) this._lifeCycleHooks[i].forEach((t)=>{
|
|
648
|
-
n = this._chainOrCall(n, ()=>t(this, e));
|
|
649
|
-
});
|
|
650
|
-
return n;
|
|
651
|
-
}
|
|
652
|
-
_parseCommand(t, e) {
|
|
653
|
-
const i = this.parseOptions(e);
|
|
654
|
-
this._parseOptionsEnv();
|
|
655
|
-
this._parseOptionsImplied();
|
|
656
|
-
t = t.concat(i.operands);
|
|
657
|
-
e = i.unknown;
|
|
658
|
-
this.args = t.concat(e);
|
|
659
|
-
if (t && this._findCommand(t[0])) return this._dispatchSubcommand(t[0], t.slice(1), e);
|
|
660
|
-
if (this._hasImplicitHelpCommand() && t[0] === this._helpCommandName) {
|
|
661
|
-
if (1 === t.length) this.help();
|
|
662
|
-
return this._dispatchSubcommand(t[1], [], [
|
|
663
|
-
this._helpLongFlag
|
|
664
|
-
]);
|
|
665
|
-
}
|
|
666
|
-
if (this._defaultCommandName) {
|
|
667
|
-
outputHelpIfRequested(this, e);
|
|
668
|
-
return this._dispatchSubcommand(this._defaultCommandName, t, e);
|
|
669
|
-
}
|
|
670
|
-
if (this.commands.length && 0 === this.args.length && !this._actionHandler && !this._defaultCommandName) this.help({
|
|
671
|
-
error: true
|
|
672
|
-
});
|
|
673
|
-
outputHelpIfRequested(this, i.unknown);
|
|
674
|
-
this._checkForMissingMandatoryOptions();
|
|
675
|
-
this._checkForConflictingOptions();
|
|
676
|
-
const checkForUnknownOptions = ()=>{
|
|
677
|
-
if (i.unknown.length > 0) this.unknownOption(i.unknown[0]);
|
|
678
|
-
};
|
|
679
|
-
const n = `command:${this.name()}`;
|
|
680
|
-
if (this._actionHandler) {
|
|
681
|
-
checkForUnknownOptions();
|
|
682
|
-
this._processArguments();
|
|
683
|
-
let i;
|
|
684
|
-
i = this._chainOrCallHooks(i, "preAction");
|
|
685
|
-
i = this._chainOrCall(i, ()=>this._actionHandler(this.processedArgs));
|
|
686
|
-
if (this.parent) i = this._chainOrCall(i, ()=>{
|
|
687
|
-
this.parent.emit(n, t, e);
|
|
688
|
-
});
|
|
689
|
-
i = this._chainOrCallHooks(i, "postAction");
|
|
690
|
-
return i;
|
|
691
|
-
}
|
|
692
|
-
if (this.parent && this.parent.listenerCount(n)) {
|
|
693
|
-
checkForUnknownOptions();
|
|
694
|
-
this._processArguments();
|
|
695
|
-
this.parent.emit(n, t, e);
|
|
696
|
-
} else if (t.length) {
|
|
697
|
-
if (this._findCommand("*")) return this._dispatchSubcommand("*", t, e);
|
|
698
|
-
if (this.listenerCount("command:*")) this.emit("command:*", t, e);
|
|
699
|
-
else if (this.commands.length) this.unknownCommand();
|
|
1358
|
+
if (a.length > 2 && "-" === a[0] && "-" !== a[1]) {
|
|
1359
|
+
const t = this._findOption(`-${a[1]}`);
|
|
1360
|
+
if (t) {
|
|
1361
|
+
if (t.required || t.optional && this._combineFlagAndOptionalValue) this.emit(`option:${t.name()}`, a.slice(2));
|
|
700
1362
|
else {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
} else if (this.commands.length) {
|
|
705
|
-
checkForUnknownOptions();
|
|
706
|
-
this.help({
|
|
707
|
-
error: true
|
|
708
|
-
});
|
|
709
|
-
} else {
|
|
710
|
-
checkForUnknownOptions();
|
|
711
|
-
this._processArguments();
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
_findCommand(t) {
|
|
715
|
-
if (!t) return;
|
|
716
|
-
return this.commands.find((e)=>e._name === t || e._aliases.includes(t));
|
|
717
|
-
}
|
|
718
|
-
_findOption(t) {
|
|
719
|
-
return this.options.find((e)=>e.is(t));
|
|
720
|
-
}
|
|
721
|
-
_checkForMissingMandatoryOptions() {
|
|
722
|
-
for(let t = this; t; t = t.parent)t.options.forEach((e)=>{
|
|
723
|
-
if (e.mandatory && void 0 === t.getOptionValue(e.attributeName())) t.missingMandatoryOptionValue(e);
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
_checkForConflictingLocalOptions() {
|
|
727
|
-
const t = this.options.filter((t)=>{
|
|
728
|
-
const e = t.attributeName();
|
|
729
|
-
if (void 0 === this.getOptionValue(e)) return false;
|
|
730
|
-
return "default" !== this.getOptionValueSource(e);
|
|
731
|
-
});
|
|
732
|
-
const e = t.filter((t)=>t.conflictsWith.length > 0);
|
|
733
|
-
e.forEach((e)=>{
|
|
734
|
-
const i = t.find((t)=>e.conflictsWith.includes(t.attributeName()));
|
|
735
|
-
if (i) this._conflictingOption(e, i);
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
_checkForConflictingOptions() {
|
|
739
|
-
for(let t = this; t; t = t.parent)t._checkForConflictingLocalOptions();
|
|
740
|
-
}
|
|
741
|
-
parseOptions(t) {
|
|
742
|
-
const e = [];
|
|
743
|
-
const i = [];
|
|
744
|
-
let n = e;
|
|
745
|
-
const s = t.slice();
|
|
746
|
-
function maybeOption(t) {
|
|
747
|
-
return t.length > 1 && "-" === t[0];
|
|
748
|
-
}
|
|
749
|
-
let r = null;
|
|
750
|
-
while(s.length){
|
|
751
|
-
const t = s.shift();
|
|
752
|
-
if ("--" === t) {
|
|
753
|
-
if (n === i) n.push(t);
|
|
754
|
-
n.push(...s);
|
|
755
|
-
break;
|
|
1363
|
+
this.emit(`option:${t.name()}`);
|
|
1364
|
+
r = `-${a.slice(2)}`;
|
|
756
1365
|
}
|
|
757
|
-
|
|
758
|
-
this.emit(`option:${r.name()}`, t);
|
|
759
|
-
continue;
|
|
760
|
-
}
|
|
761
|
-
r = null;
|
|
762
|
-
if (maybeOption(t)) {
|
|
763
|
-
const e = this._findOption(t);
|
|
764
|
-
if (e) {
|
|
765
|
-
if (e.required) {
|
|
766
|
-
const t = s.shift();
|
|
767
|
-
if (void 0 === t) this.optionMissingArgument(e);
|
|
768
|
-
this.emit(`option:${e.name()}`, t);
|
|
769
|
-
} else if (e.optional) {
|
|
770
|
-
let t = null;
|
|
771
|
-
if (s.length > 0 && !maybeOption(s[0])) t = s.shift();
|
|
772
|
-
this.emit(`option:${e.name()}`, t);
|
|
773
|
-
} else this.emit(`option:${e.name()}`);
|
|
774
|
-
r = e.variadic ? e : null;
|
|
775
|
-
continue;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
if (t.length > 2 && "-" === t[0] && "-" !== t[1]) {
|
|
779
|
-
const e = this._findOption(`-${t[1]}`);
|
|
780
|
-
if (e) {
|
|
781
|
-
if (e.required || e.optional && this._combineFlagAndOptionalValue) this.emit(`option:${e.name()}`, t.slice(2));
|
|
782
|
-
else {
|
|
783
|
-
this.emit(`option:${e.name()}`);
|
|
784
|
-
s.unshift(`-${t.slice(2)}`);
|
|
785
|
-
}
|
|
786
|
-
continue;
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
if (/^--[^=]+=/.test(t)) {
|
|
790
|
-
const e = t.indexOf("=");
|
|
791
|
-
const i = this._findOption(t.slice(0, e));
|
|
792
|
-
if (i && (i.required || i.optional)) {
|
|
793
|
-
this.emit(`option:${i.name()}`, t.slice(e + 1));
|
|
794
|
-
continue;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
if (maybeOption(t)) n = i;
|
|
798
|
-
if ((this._enablePositionalOptions || this._passThroughOptions) && 0 === e.length && 0 === i.length) {
|
|
799
|
-
if (this._findCommand(t)) {
|
|
800
|
-
e.push(t);
|
|
801
|
-
if (s.length > 0) i.push(...s);
|
|
802
|
-
break;
|
|
803
|
-
} else if (t === this._helpCommandName && this._hasImplicitHelpCommand()) {
|
|
804
|
-
e.push(t);
|
|
805
|
-
if (s.length > 0) e.push(...s);
|
|
806
|
-
break;
|
|
807
|
-
} else if (this._defaultCommandName) {
|
|
808
|
-
i.push(t);
|
|
809
|
-
if (s.length > 0) i.push(...s);
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
if (this._passThroughOptions) {
|
|
814
|
-
n.push(t);
|
|
815
|
-
if (s.length > 0) n.push(...s);
|
|
816
|
-
break;
|
|
817
|
-
}
|
|
818
|
-
n.push(t);
|
|
1366
|
+
continue;
|
|
819
1367
|
}
|
|
820
|
-
return {
|
|
821
|
-
operands: e,
|
|
822
|
-
unknown: i
|
|
823
|
-
};
|
|
824
|
-
}
|
|
825
|
-
opts() {
|
|
826
|
-
if (this._storeOptionsAsProperties) {
|
|
827
|
-
const t = {};
|
|
828
|
-
const e = this.options.length;
|
|
829
|
-
for(let i = 0; i < e; i++){
|
|
830
|
-
const e = this.options[i].attributeName();
|
|
831
|
-
t[e] = e === this._versionOptionName ? this._version : this[e];
|
|
832
|
-
}
|
|
833
|
-
return t;
|
|
834
|
-
}
|
|
835
|
-
return this._optionValues;
|
|
836
|
-
}
|
|
837
|
-
optsWithGlobals() {
|
|
838
|
-
return getCommandAndParents(this).reduce((t, e)=>Object.assign(t, e.opts()), {});
|
|
839
|
-
}
|
|
840
|
-
error(t, e) {
|
|
841
|
-
this._outputConfiguration.outputError(`${t}\n`, this._outputConfiguration.writeErr);
|
|
842
|
-
if ("string" == typeof this._showHelpAfterError) this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
|
|
843
|
-
else if (this._showHelpAfterError) {
|
|
844
|
-
this._outputConfiguration.writeErr("\n");
|
|
845
|
-
this.outputHelp({
|
|
846
|
-
error: true
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
const i = e || {};
|
|
850
|
-
const n = i.exitCode || 1;
|
|
851
|
-
const s = i.code || "commander.error";
|
|
852
|
-
this._exit(n, s, t);
|
|
853
|
-
}
|
|
854
|
-
_parseOptionsEnv() {
|
|
855
|
-
this.options.forEach((t)=>{
|
|
856
|
-
if (t.envVar && t.envVar in a.env) {
|
|
857
|
-
const e = t.attributeName();
|
|
858
|
-
if (void 0 === this.getOptionValue(e) || [
|
|
859
|
-
"default",
|
|
860
|
-
"config",
|
|
861
|
-
"env"
|
|
862
|
-
].includes(this.getOptionValueSource(e))) if (t.required || t.optional) this.emit(`optionEnv:${t.name()}`, a.env[t.envVar]);
|
|
863
|
-
else this.emit(`optionEnv:${t.name()}`);
|
|
864
|
-
}
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
_parseOptionsImplied() {
|
|
868
|
-
const t = new d(this.options);
|
|
869
|
-
const hasCustomOptionValue = (t)=>void 0 !== this.getOptionValue(t) && ![
|
|
870
|
-
"default",
|
|
871
|
-
"implied"
|
|
872
|
-
].includes(this.getOptionValueSource(t));
|
|
873
|
-
this.options.filter((e)=>void 0 !== e.implied && hasCustomOptionValue(e.attributeName()) && t.valueFromOption(this.getOptionValue(e.attributeName()), e)).forEach((t)=>{
|
|
874
|
-
Object.keys(t.implied).filter((t)=>!hasCustomOptionValue(t)).forEach((e)=>{
|
|
875
|
-
this.setOptionValueWithSource(e, t.implied[e], "implied");
|
|
876
|
-
});
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
missingArgument(t) {
|
|
880
|
-
const e = `error: missing required argument '${t}'`;
|
|
881
|
-
this.error(e, {
|
|
882
|
-
code: "commander.missingArgument"
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
optionMissingArgument(t) {
|
|
886
|
-
const e = `error: option '${t.flags}' argument missing`;
|
|
887
|
-
this.error(e, {
|
|
888
|
-
code: "commander.optionMissingArgument"
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
missingMandatoryOptionValue(t) {
|
|
892
|
-
const e = `error: required option '${t.flags}' not specified`;
|
|
893
|
-
this.error(e, {
|
|
894
|
-
code: "commander.missingMandatoryOptionValue"
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
_conflictingOption(t, e) {
|
|
898
|
-
const findBestOptionFromValue = (t)=>{
|
|
899
|
-
const e = t.attributeName();
|
|
900
|
-
const i = this.getOptionValue(e);
|
|
901
|
-
const n = this.options.find((t)=>t.negate && e === t.attributeName());
|
|
902
|
-
const s = this.options.find((t)=>!t.negate && e === t.attributeName());
|
|
903
|
-
if (n && (void 0 === n.presetArg && false === i || void 0 !== n.presetArg && i === n.presetArg)) return n;
|
|
904
|
-
return s || t;
|
|
905
|
-
};
|
|
906
|
-
const getErrorMessage = (t)=>{
|
|
907
|
-
const e = findBestOptionFromValue(t);
|
|
908
|
-
const i = e.attributeName();
|
|
909
|
-
const n = this.getOptionValueSource(i);
|
|
910
|
-
if ("env" === n) return `environment variable '${e.envVar}'`;
|
|
911
|
-
return `option '${e.flags}'`;
|
|
912
|
-
};
|
|
913
|
-
const i = `error: ${getErrorMessage(t)} cannot be used with ${getErrorMessage(e)}`;
|
|
914
|
-
this.error(i, {
|
|
915
|
-
code: "commander.conflictingOption"
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
unknownOption(t) {
|
|
919
|
-
if (this._allowUnknownOption) return;
|
|
920
|
-
let e = "";
|
|
921
|
-
if (t.startsWith("--") && this._showSuggestionAfterError) {
|
|
922
|
-
let i = [];
|
|
923
|
-
let n = this;
|
|
924
|
-
do {
|
|
925
|
-
const t = n.createHelp().visibleOptions(n).filter((t)=>t.long).map((t)=>t.long);
|
|
926
|
-
i = i.concat(t);
|
|
927
|
-
n = n.parent;
|
|
928
|
-
}while (n && !n._enablePositionalOptions);
|
|
929
|
-
e = f(t, i);
|
|
930
|
-
}
|
|
931
|
-
const i = `error: unknown option '${t}'${e}`;
|
|
932
|
-
this.error(i, {
|
|
933
|
-
code: "commander.unknownOption"
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
_excessArguments(t) {
|
|
937
|
-
if (this._allowExcessArguments) return;
|
|
938
|
-
const e = this._args.length;
|
|
939
|
-
const i = 1 === e ? "" : "s";
|
|
940
|
-
const n = this.parent ? ` for '${this.name()}'` : "";
|
|
941
|
-
const s = `error: too many arguments${n}. Expected ${e} argument${i} but got ${t.length}.`;
|
|
942
|
-
this.error(s, {
|
|
943
|
-
code: "commander.excessArguments"
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
unknownCommand() {
|
|
947
|
-
const t = this.args[0];
|
|
948
|
-
let e = "";
|
|
949
|
-
if (this._showSuggestionAfterError) {
|
|
950
|
-
const i = [];
|
|
951
|
-
this.createHelp().visibleCommands(this).forEach((t)=>{
|
|
952
|
-
i.push(t.name());
|
|
953
|
-
if (t.alias()) i.push(t.alias());
|
|
954
|
-
});
|
|
955
|
-
e = f(t, i);
|
|
956
|
-
}
|
|
957
|
-
const i = `error: unknown command '${t}'${e}`;
|
|
958
|
-
this.error(i, {
|
|
959
|
-
code: "commander.unknownCommand"
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
version(t, e, i) {
|
|
963
|
-
if (void 0 === t) return this._version;
|
|
964
|
-
this._version = t;
|
|
965
|
-
e = e || "-V, --version";
|
|
966
|
-
i = i || "output the version number";
|
|
967
|
-
const n = this.createOption(e, i);
|
|
968
|
-
this._versionOptionName = n.attributeName();
|
|
969
|
-
this.options.push(n);
|
|
970
|
-
this.on("option:" + n.name(), ()=>{
|
|
971
|
-
this._outputConfiguration.writeOut(`${t}\n`);
|
|
972
|
-
this._exit(0, "commander.version", t);
|
|
973
|
-
});
|
|
974
|
-
return this;
|
|
975
|
-
}
|
|
976
|
-
description(t, e) {
|
|
977
|
-
if (void 0 === t && void 0 === e) return this._description;
|
|
978
|
-
this._description = t;
|
|
979
|
-
if (e) this._argsDescription = e;
|
|
980
|
-
return this;
|
|
981
|
-
}
|
|
982
|
-
summary(t) {
|
|
983
|
-
if (void 0 === t) return this._summary;
|
|
984
|
-
this._summary = t;
|
|
985
|
-
return this;
|
|
986
|
-
}
|
|
987
|
-
alias(t) {
|
|
988
|
-
if (void 0 === t) return this._aliases[0];
|
|
989
|
-
let e = this;
|
|
990
|
-
if (0 !== this.commands.length && this.commands[this.commands.length - 1]._executableHandler) e = this.commands[this.commands.length - 1];
|
|
991
|
-
if (t === e._name) throw new Error("Command alias can't be the same as its name");
|
|
992
|
-
e._aliases.push(t);
|
|
993
|
-
return this;
|
|
994
|
-
}
|
|
995
|
-
aliases(t) {
|
|
996
|
-
if (void 0 === t) return this._aliases;
|
|
997
|
-
t.forEach((t)=>this.alias(t));
|
|
998
|
-
return this;
|
|
999
|
-
}
|
|
1000
|
-
usage(t) {
|
|
1001
|
-
if (void 0 === t) {
|
|
1002
|
-
if (this._usage) return this._usage;
|
|
1003
|
-
const t = this._args.map((t)=>h(t));
|
|
1004
|
-
return [].concat(this.options.length || this._hasHelpOption ? "[options]" : [], this.commands.length ? "[command]" : [], this._args.length ? t : []).join(" ");
|
|
1005
|
-
}
|
|
1006
|
-
this._usage = t;
|
|
1007
|
-
return this;
|
|
1008
|
-
}
|
|
1009
|
-
name(t) {
|
|
1010
|
-
if (void 0 === t) return this._name;
|
|
1011
|
-
this._name = t;
|
|
1012
|
-
return this;
|
|
1013
|
-
}
|
|
1014
|
-
nameFromFilename(t) {
|
|
1015
|
-
this._name = r.basename(t, r.extname(t));
|
|
1016
|
-
return this;
|
|
1017
|
-
}
|
|
1018
|
-
executableDir(t) {
|
|
1019
|
-
if (void 0 === t) return this._executableDir;
|
|
1020
|
-
this._executableDir = t;
|
|
1021
|
-
return this;
|
|
1022
|
-
}
|
|
1023
|
-
helpInformation(t) {
|
|
1024
|
-
const e = this.createHelp();
|
|
1025
|
-
if (void 0 === e.helpWidth) e.helpWidth = t && t.error ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
|
|
1026
|
-
return e.formatHelp(this, e);
|
|
1027
1368
|
}
|
|
1028
|
-
|
|
1029
|
-
t =
|
|
1030
|
-
const e =
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
i = e.error ? (t)=>this._outputConfiguration.writeErr(t) : (t)=>this._outputConfiguration.writeOut(t);
|
|
1035
|
-
e.write = t.write || i;
|
|
1036
|
-
e.command = this;
|
|
1037
|
-
return e;
|
|
1038
|
-
}
|
|
1039
|
-
outputHelp(t) {
|
|
1040
|
-
let e;
|
|
1041
|
-
if ("function" == typeof t) {
|
|
1042
|
-
e = t;
|
|
1043
|
-
t = void 0;
|
|
1044
|
-
}
|
|
1045
|
-
const i = this._getHelpContext(t);
|
|
1046
|
-
getCommandAndParents(this).reverse().forEach((t)=>t.emit("beforeAllHelp", i));
|
|
1047
|
-
this.emit("beforeHelp", i);
|
|
1048
|
-
let n = this.helpInformation(i);
|
|
1049
|
-
if (e) {
|
|
1050
|
-
n = e(n);
|
|
1051
|
-
if ("string" != typeof n && !Buffer.isBuffer(n)) throw new Error("outputHelp callback must return a string or a Buffer");
|
|
1369
|
+
if (/^--[^=]+=/.test(a)) {
|
|
1370
|
+
const t = a.indexOf("=");
|
|
1371
|
+
const e = this._findOption(a.slice(0, t));
|
|
1372
|
+
if (e && (e.required || e.optional)) {
|
|
1373
|
+
this.emit(`option:${e.name()}`, a.slice(t + 1));
|
|
1374
|
+
continue;
|
|
1052
1375
|
}
|
|
1053
|
-
i.write(n);
|
|
1054
|
-
this.emit(this._helpLongFlag);
|
|
1055
|
-
this.emit("afterHelp", i);
|
|
1056
|
-
getCommandAndParents(this).forEach((t)=>t.emit("afterAllHelp", i));
|
|
1057
1376
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1377
|
+
if (n === e && maybeOption(a) && !(0 === this.commands.length && negativeNumberArg(a))) n = i;
|
|
1378
|
+
if ((this._enablePositionalOptions || this._passThroughOptions) && 0 === e.length && 0 === i.length) {
|
|
1379
|
+
if (this._findCommand(a)) {
|
|
1380
|
+
e.push(a);
|
|
1381
|
+
i.push(...t.slice(o));
|
|
1382
|
+
break;
|
|
1383
|
+
} else if (this._getHelpCommand() && a === this._getHelpCommand().name()) {
|
|
1384
|
+
e.push(a, ...t.slice(o));
|
|
1385
|
+
break;
|
|
1386
|
+
} else if (this._defaultCommandName) {
|
|
1387
|
+
i.push(a, ...t.slice(o));
|
|
1388
|
+
break;
|
|
1062
1389
|
}
|
|
1063
|
-
this._helpFlags = t || this._helpFlags;
|
|
1064
|
-
this._helpDescription = e || this._helpDescription;
|
|
1065
|
-
const i = m(this._helpFlags);
|
|
1066
|
-
this._helpShortFlag = i.shortFlag;
|
|
1067
|
-
this._helpLongFlag = i.longFlag;
|
|
1068
|
-
return this;
|
|
1069
|
-
}
|
|
1070
|
-
help(t) {
|
|
1071
|
-
this.outputHelp(t);
|
|
1072
|
-
let e = a.exitCode || 0;
|
|
1073
|
-
if (0 === e && t && "function" != typeof t && t.error) e = 1;
|
|
1074
|
-
this._exit(e, "commander.help", "(outputHelp)");
|
|
1075
1390
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
"before",
|
|
1080
|
-
"after",
|
|
1081
|
-
"afterAll"
|
|
1082
|
-
];
|
|
1083
|
-
if (!i.includes(t)) throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`);
|
|
1084
|
-
const n = `${t}Help`;
|
|
1085
|
-
this.on(n, (t)=>{
|
|
1086
|
-
let i;
|
|
1087
|
-
i = "function" == typeof e ? e({
|
|
1088
|
-
error: t.error,
|
|
1089
|
-
command: t.command
|
|
1090
|
-
}) : e;
|
|
1091
|
-
if (i) t.write(`${i}\n`);
|
|
1092
|
-
});
|
|
1093
|
-
return this;
|
|
1391
|
+
if (this._passThroughOptions) {
|
|
1392
|
+
n.push(a, ...t.slice(o));
|
|
1393
|
+
break;
|
|
1094
1394
|
}
|
|
1395
|
+
n.push(a);
|
|
1095
1396
|
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1397
|
+
return {
|
|
1398
|
+
operands: e,
|
|
1399
|
+
unknown: i
|
|
1400
|
+
};
|
|
1401
|
+
}
|
|
1402
|
+
opts() {
|
|
1403
|
+
if (this._storeOptionsAsProperties) {
|
|
1404
|
+
const t = {};
|
|
1405
|
+
const e = this.options.length;
|
|
1406
|
+
for(let i = 0; i < e; i++){
|
|
1407
|
+
const e = this.options[i].attributeName();
|
|
1408
|
+
t[e] = e === this._versionOptionName ? this._version : this[e];
|
|
1409
|
+
}
|
|
1410
|
+
return t;
|
|
1102
1411
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
} else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))) {
|
|
1116
|
-
e = s[1];
|
|
1117
|
-
i = s[3];
|
|
1118
|
-
n = s[4];
|
|
1119
|
-
}
|
|
1120
|
-
if (e && "0" !== n) return `${e}=${i}:${parseInt(n) + 1}`;
|
|
1121
|
-
return t;
|
|
1412
|
+
return this._optionValues;
|
|
1413
|
+
}
|
|
1414
|
+
optsWithGlobals() {
|
|
1415
|
+
return this._getCommandAndAncestors().reduce((t, e)=>Object.assign(t, e.opts()), {});
|
|
1416
|
+
}
|
|
1417
|
+
error(t, e) {
|
|
1418
|
+
this._outputConfiguration.outputError(`${t}\n`, this._outputConfiguration.writeErr);
|
|
1419
|
+
if ("string" == typeof this._showHelpAfterError) this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
|
|
1420
|
+
else if (this._showHelpAfterError) {
|
|
1421
|
+
this._outputConfiguration.writeErr("\n");
|
|
1422
|
+
this.outputHelp({
|
|
1423
|
+
error: true
|
|
1122
1424
|
});
|
|
1123
1425
|
}
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
|
|
1140
|
-
|
|
1426
|
+
const i = e || {};
|
|
1427
|
+
const n = i.exitCode || 1;
|
|
1428
|
+
const s = i.code || "commander.error";
|
|
1429
|
+
this._exit(n, s, t);
|
|
1430
|
+
}
|
|
1431
|
+
_parseOptionsEnv() {
|
|
1432
|
+
this.options.forEach((t)=>{
|
|
1433
|
+
if (t.envVar && t.envVar in o.env) {
|
|
1434
|
+
const e = t.attributeName();
|
|
1435
|
+
if (void 0 === this.getOptionValue(e) || [
|
|
1436
|
+
"default",
|
|
1437
|
+
"config",
|
|
1438
|
+
"env"
|
|
1439
|
+
].includes(this.getOptionValueSource(e))) if (t.required || t.optional) this.emit(`optionEnv:${t.name()}`, o.env[t.envVar]);
|
|
1440
|
+
else this.emit(`optionEnv:${t.name()}`);
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
_parseOptionsImplied() {
|
|
1445
|
+
const t = new DualOptions(this.options);
|
|
1446
|
+
const hasCustomOptionValue = (t)=>void 0 !== this.getOptionValue(t) && ![
|
|
1447
|
+
"default",
|
|
1448
|
+
"implied"
|
|
1449
|
+
].includes(this.getOptionValueSource(t));
|
|
1450
|
+
this.options.filter((e)=>void 0 !== e.implied && hasCustomOptionValue(e.attributeName()) && t.valueFromOption(this.getOptionValue(e.attributeName()), e)).forEach((t)=>{
|
|
1451
|
+
Object.keys(t.implied).filter((t)=>!hasCustomOptionValue(t)).forEach((e)=>{
|
|
1452
|
+
this.setOptionValueWithSource(e, t.implied[e], "implied");
|
|
1453
|
+
});
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
missingArgument(t) {
|
|
1457
|
+
const e = `error: missing required argument '${t}'`;
|
|
1458
|
+
this.error(e, {
|
|
1459
|
+
code: "commander.missingArgument"
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
optionMissingArgument(t) {
|
|
1463
|
+
const e = `error: option '${t.flags}' argument missing`;
|
|
1464
|
+
this.error(e, {
|
|
1465
|
+
code: "commander.optionMissingArgument"
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
missingMandatoryOptionValue(t) {
|
|
1469
|
+
const e = `error: required option '${t.flags}' not specified`;
|
|
1470
|
+
this.error(e, {
|
|
1471
|
+
code: "commander.missingMandatoryOptionValue"
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
_conflictingOption(t, e) {
|
|
1475
|
+
const findBestOptionFromValue = (t)=>{
|
|
1476
|
+
const e = t.attributeName();
|
|
1477
|
+
const i = this.getOptionValue(e);
|
|
1478
|
+
const n = this.options.find((t)=>t.negate && e === t.attributeName());
|
|
1479
|
+
const s = this.options.find((t)=>!t.negate && e === t.attributeName());
|
|
1480
|
+
if (n && (void 0 === n.presetArg && false === i || void 0 !== n.presetArg && i === n.presetArg)) return n;
|
|
1481
|
+
return s || t;
|
|
1482
|
+
};
|
|
1483
|
+
const getErrorMessage = (t)=>{
|
|
1484
|
+
const e = findBestOptionFromValue(t);
|
|
1485
|
+
const i = e.attributeName();
|
|
1486
|
+
const n = this.getOptionValueSource(i);
|
|
1487
|
+
if ("env" === n) return `environment variable '${e.envVar}'`;
|
|
1488
|
+
return `option '${e.flags}'`;
|
|
1489
|
+
};
|
|
1490
|
+
const i = `error: ${getErrorMessage(t)} cannot be used with ${getErrorMessage(e)}`;
|
|
1491
|
+
this.error(i, {
|
|
1492
|
+
code: "commander.conflictingOption"
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
unknownOption(t) {
|
|
1496
|
+
if (this._allowUnknownOption) return;
|
|
1497
|
+
let e = "";
|
|
1498
|
+
if (t.startsWith("--") && this._showSuggestionAfterError) {
|
|
1499
|
+
let i = [];
|
|
1500
|
+
let n = this;
|
|
1501
|
+
do {
|
|
1502
|
+
const t = n.createHelp().visibleOptions(n).filter((t)=>t.long).map((t)=>t.long);
|
|
1503
|
+
i = i.concat(t);
|
|
1504
|
+
n = n.parent;
|
|
1505
|
+
}while (n && !n._enablePositionalOptions);
|
|
1506
|
+
e = suggestSimilar(t, i);
|
|
1141
1507
|
}
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1508
|
+
const i = `error: unknown option '${t}'${e}`;
|
|
1509
|
+
this.error(i, {
|
|
1510
|
+
code: "commander.unknownOption"
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
_excessArguments(t) {
|
|
1514
|
+
if (this._allowExcessArguments) return;
|
|
1515
|
+
const e = this.registeredArguments.length;
|
|
1516
|
+
const i = 1 === e ? "" : "s";
|
|
1517
|
+
const n = t.length;
|
|
1518
|
+
const s = this.parent ? ` for '${this.name()}'` : "";
|
|
1519
|
+
const r = t.join(", ");
|
|
1520
|
+
const o = `error: too many arguments${s}. Expected ${e} argument${i} but got ${n}: ${r}.`;
|
|
1521
|
+
this.error(o, {
|
|
1522
|
+
code: "commander.excessArguments"
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
unknownCommand() {
|
|
1526
|
+
const t = this.args[0];
|
|
1527
|
+
let e = "";
|
|
1528
|
+
if (this._showSuggestionAfterError) {
|
|
1529
|
+
const i = [];
|
|
1530
|
+
this.createHelp().visibleCommands(this).forEach((t)=>{
|
|
1531
|
+
i.push(t.name());
|
|
1532
|
+
if (t.alias()) i.push(t.alias());
|
|
1533
|
+
});
|
|
1534
|
+
e = suggestSimilar(t, i);
|
|
1148
1535
|
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
if (!this.showGlobalOptions) return [];
|
|
1191
|
-
const e = [];
|
|
1192
|
-
for(let i = t.parent; i; i = i.parent){
|
|
1193
|
-
const t = i.options.filter((t)=>!t.hidden);
|
|
1194
|
-
e.push(...t);
|
|
1195
|
-
}
|
|
1196
|
-
if (this.sortOptions) e.sort(this.compareOptions);
|
|
1197
|
-
return e;
|
|
1198
|
-
}
|
|
1199
|
-
visibleArguments(t) {
|
|
1200
|
-
if (t._argsDescription) t._args.forEach((e)=>{
|
|
1201
|
-
e.description = e.description || t._argsDescription[e.name()] || "";
|
|
1202
|
-
});
|
|
1203
|
-
if (t._args.find((t)=>t.description)) return t._args;
|
|
1204
|
-
return [];
|
|
1205
|
-
}
|
|
1206
|
-
subcommandTerm(t) {
|
|
1207
|
-
const e = t._args.map((t)=>n(t)).join(" ");
|
|
1208
|
-
return t._name + (t._aliases[0] ? "|" + t._aliases[0] : "") + (t.options.length ? " [options]" : "") + (e ? " " + e : "");
|
|
1209
|
-
}
|
|
1210
|
-
optionTerm(t) {
|
|
1211
|
-
return t.flags;
|
|
1212
|
-
}
|
|
1213
|
-
argumentTerm(t) {
|
|
1214
|
-
return t.name();
|
|
1215
|
-
}
|
|
1216
|
-
longestSubcommandTermLength(t, e) {
|
|
1217
|
-
return e.visibleCommands(t).reduce((t, i)=>Math.max(t, e.subcommandTerm(i).length), 0);
|
|
1218
|
-
}
|
|
1219
|
-
longestOptionTermLength(t, e) {
|
|
1220
|
-
return e.visibleOptions(t).reduce((t, i)=>Math.max(t, e.optionTerm(i).length), 0);
|
|
1221
|
-
}
|
|
1222
|
-
longestGlobalOptionTermLength(t, e) {
|
|
1223
|
-
return e.visibleGlobalOptions(t).reduce((t, i)=>Math.max(t, e.optionTerm(i).length), 0);
|
|
1224
|
-
}
|
|
1225
|
-
longestArgumentTermLength(t, e) {
|
|
1226
|
-
return e.visibleArguments(t).reduce((t, i)=>Math.max(t, e.argumentTerm(i).length), 0);
|
|
1227
|
-
}
|
|
1228
|
-
commandUsage(t) {
|
|
1229
|
-
let e = t._name;
|
|
1230
|
-
if (t._aliases[0]) e = e + "|" + t._aliases[0];
|
|
1231
|
-
let i = "";
|
|
1232
|
-
for(let e = t.parent; e; e = e.parent)i = e.name() + " " + i;
|
|
1233
|
-
return i + e + " " + t.usage();
|
|
1234
|
-
}
|
|
1235
|
-
commandDescription(t) {
|
|
1236
|
-
return t.description();
|
|
1237
|
-
}
|
|
1238
|
-
subcommandDescription(t) {
|
|
1239
|
-
return t.summary() || t.description();
|
|
1240
|
-
}
|
|
1241
|
-
optionDescription(t) {
|
|
1242
|
-
const e = [];
|
|
1243
|
-
if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
|
|
1244
|
-
if (void 0 !== t.defaultValue) {
|
|
1245
|
-
const i = t.required || t.optional || t.isBoolean() && "boolean" == typeof t.defaultValue;
|
|
1246
|
-
if (i) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
|
|
1247
|
-
}
|
|
1248
|
-
if (void 0 !== t.presetArg && t.optional) e.push(`preset: ${JSON.stringify(t.presetArg)}`);
|
|
1249
|
-
if (void 0 !== t.envVar) e.push(`env: ${t.envVar}`);
|
|
1250
|
-
if (e.length > 0) return `${t.description} (${e.join(", ")})`;
|
|
1251
|
-
return t.description;
|
|
1252
|
-
}
|
|
1253
|
-
argumentDescription(t) {
|
|
1254
|
-
const e = [];
|
|
1255
|
-
if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
|
|
1256
|
-
if (void 0 !== t.defaultValue) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
|
|
1257
|
-
if (e.length > 0) {
|
|
1258
|
-
const i = `(${e.join(", ")})`;
|
|
1259
|
-
if (t.description) return `${t.description} ${i}`;
|
|
1260
|
-
return i;
|
|
1261
|
-
}
|
|
1262
|
-
return t.description;
|
|
1263
|
-
}
|
|
1264
|
-
formatHelp(t, e) {
|
|
1265
|
-
const i = e.padWidth(t, e);
|
|
1266
|
-
const n = e.helpWidth || 80;
|
|
1267
|
-
const s = 2;
|
|
1268
|
-
const r = 2;
|
|
1269
|
-
function formatItem(t, o) {
|
|
1270
|
-
if (o) {
|
|
1271
|
-
const a = `${t.padEnd(i + r)}${o}`;
|
|
1272
|
-
return e.wrap(a, n - s, i + r);
|
|
1273
|
-
}
|
|
1274
|
-
return t;
|
|
1275
|
-
}
|
|
1276
|
-
function formatList(t) {
|
|
1277
|
-
return t.join("\n").replace(/^/gm, " ".repeat(s));
|
|
1278
|
-
}
|
|
1279
|
-
let o = [
|
|
1280
|
-
`Usage: ${e.commandUsage(t)}`,
|
|
1281
|
-
""
|
|
1282
|
-
];
|
|
1283
|
-
const a = e.commandDescription(t);
|
|
1284
|
-
if (a.length > 0) o = o.concat([
|
|
1285
|
-
e.wrap(a, n, 0),
|
|
1286
|
-
""
|
|
1287
|
-
]);
|
|
1288
|
-
const l = e.visibleArguments(t).map((t)=>formatItem(e.argumentTerm(t), e.argumentDescription(t)));
|
|
1289
|
-
if (l.length > 0) o = o.concat([
|
|
1290
|
-
"Arguments:",
|
|
1291
|
-
formatList(l),
|
|
1292
|
-
""
|
|
1293
|
-
]);
|
|
1294
|
-
const h = e.visibleOptions(t).map((t)=>formatItem(e.optionTerm(t), e.optionDescription(t)));
|
|
1295
|
-
if (h.length > 0) o = o.concat([
|
|
1296
|
-
"Options:",
|
|
1297
|
-
formatList(h),
|
|
1298
|
-
""
|
|
1299
|
-
]);
|
|
1300
|
-
if (this.showGlobalOptions) {
|
|
1301
|
-
const i = e.visibleGlobalOptions(t).map((t)=>formatItem(e.optionTerm(t), e.optionDescription(t)));
|
|
1302
|
-
if (i.length > 0) o = o.concat([
|
|
1303
|
-
"Global Options:",
|
|
1304
|
-
formatList(i),
|
|
1305
|
-
""
|
|
1306
|
-
]);
|
|
1307
|
-
}
|
|
1308
|
-
const u = e.visibleCommands(t).map((t)=>formatItem(e.subcommandTerm(t), e.subcommandDescription(t)));
|
|
1309
|
-
if (u.length > 0) o = o.concat([
|
|
1310
|
-
"Commands:",
|
|
1311
|
-
formatList(u),
|
|
1312
|
-
""
|
|
1313
|
-
]);
|
|
1314
|
-
return o.join("\n");
|
|
1315
|
-
}
|
|
1316
|
-
padWidth(t, e) {
|
|
1317
|
-
return Math.max(e.longestOptionTermLength(t, e), e.longestGlobalOptionTermLength(t, e), e.longestSubcommandTermLength(t, e), e.longestArgumentTermLength(t, e));
|
|
1318
|
-
}
|
|
1319
|
-
wrap(t, e, i, n = 40) {
|
|
1320
|
-
const s = " \\f\\t\\v - \ufeff";
|
|
1321
|
-
const r = new RegExp(`[\\n][${s}]+`);
|
|
1322
|
-
if (t.match(r)) return t;
|
|
1323
|
-
const o = e - i;
|
|
1324
|
-
if (o < n) return t;
|
|
1325
|
-
const a = t.slice(0, i);
|
|
1326
|
-
const l = t.slice(i).replace("\r\n", "\n");
|
|
1327
|
-
const h = " ".repeat(i);
|
|
1328
|
-
const u = "";
|
|
1329
|
-
const c = `\\s${u}`;
|
|
1330
|
-
const p = new RegExp(`\n|.{1,${o - 1}}([${c}]|$)|[^${c}]+?([${c}]|$)`, "g");
|
|
1331
|
-
const m = l.match(p) || [];
|
|
1332
|
-
return a + m.map((t, e)=>{
|
|
1333
|
-
if ("\n" === t) return "";
|
|
1334
|
-
return (e > 0 ? h : "") + t.trimEnd();
|
|
1335
|
-
}).join("\n");
|
|
1336
|
-
}
|
|
1536
|
+
const i = `error: unknown command '${t}'${e}`;
|
|
1537
|
+
this.error(i, {
|
|
1538
|
+
code: "commander.unknownCommand"
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
version(t, e, i) {
|
|
1542
|
+
if (void 0 === t) return this._version;
|
|
1543
|
+
this._version = t;
|
|
1544
|
+
e = e || "-V, --version";
|
|
1545
|
+
i = i || "output the version number";
|
|
1546
|
+
const n = this.createOption(e, i);
|
|
1547
|
+
this._versionOptionName = n.attributeName();
|
|
1548
|
+
this._registerOption(n);
|
|
1549
|
+
this.on("option:" + n.name(), ()=>{
|
|
1550
|
+
this._outputConfiguration.writeOut(`${t}\n`);
|
|
1551
|
+
this._exit(0, "commander.version", t);
|
|
1552
|
+
});
|
|
1553
|
+
return this;
|
|
1554
|
+
}
|
|
1555
|
+
description(t, e) {
|
|
1556
|
+
if (void 0 === t && void 0 === e) return this._description;
|
|
1557
|
+
this._description = t;
|
|
1558
|
+
if (e) this._argsDescription = e;
|
|
1559
|
+
return this;
|
|
1560
|
+
}
|
|
1561
|
+
summary(t) {
|
|
1562
|
+
if (void 0 === t) return this._summary;
|
|
1563
|
+
this._summary = t;
|
|
1564
|
+
return this;
|
|
1565
|
+
}
|
|
1566
|
+
alias(t) {
|
|
1567
|
+
if (void 0 === t) return this._aliases[0];
|
|
1568
|
+
let e = this;
|
|
1569
|
+
if (0 !== this.commands.length && this.commands[this.commands.length - 1]._executableHandler) e = this.commands[this.commands.length - 1];
|
|
1570
|
+
if (t === e._name) throw new Error("Command alias can't be the same as its name");
|
|
1571
|
+
const i = this.parent?._findCommand(t);
|
|
1572
|
+
if (i) {
|
|
1573
|
+
const e = [
|
|
1574
|
+
i.name()
|
|
1575
|
+
].concat(i.aliases()).join("|");
|
|
1576
|
+
throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${e}'`);
|
|
1337
1577
|
}
|
|
1338
|
-
e.
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
this.short = i.shortFlag;
|
|
1352
|
-
this.long = i.longFlag;
|
|
1353
|
-
this.negate = false;
|
|
1354
|
-
if (this.long) this.negate = this.long.startsWith("--no-");
|
|
1355
|
-
this.defaultValue = void 0;
|
|
1356
|
-
this.defaultValueDescription = void 0;
|
|
1357
|
-
this.presetArg = void 0;
|
|
1358
|
-
this.envVar = void 0;
|
|
1359
|
-
this.parseArg = void 0;
|
|
1360
|
-
this.hidden = false;
|
|
1361
|
-
this.argChoices = void 0;
|
|
1362
|
-
this.conflictsWith = [];
|
|
1363
|
-
this.implied = void 0;
|
|
1364
|
-
}
|
|
1365
|
-
default(t, e) {
|
|
1366
|
-
this.defaultValue = t;
|
|
1367
|
-
this.defaultValueDescription = e;
|
|
1368
|
-
return this;
|
|
1369
|
-
}
|
|
1370
|
-
preset(t) {
|
|
1371
|
-
this.presetArg = t;
|
|
1372
|
-
return this;
|
|
1373
|
-
}
|
|
1374
|
-
conflicts(t) {
|
|
1375
|
-
this.conflictsWith = this.conflictsWith.concat(t);
|
|
1376
|
-
return this;
|
|
1377
|
-
}
|
|
1378
|
-
implies(t) {
|
|
1379
|
-
this.implied = Object.assign(this.implied || {}, t);
|
|
1380
|
-
return this;
|
|
1381
|
-
}
|
|
1382
|
-
env(t) {
|
|
1383
|
-
this.envVar = t;
|
|
1384
|
-
return this;
|
|
1385
|
-
}
|
|
1386
|
-
argParser(t) {
|
|
1387
|
-
this.parseArg = t;
|
|
1388
|
-
return this;
|
|
1389
|
-
}
|
|
1390
|
-
makeOptionMandatory(t = true) {
|
|
1391
|
-
this.mandatory = !!t;
|
|
1392
|
-
return this;
|
|
1393
|
-
}
|
|
1394
|
-
hideHelp(t = true) {
|
|
1395
|
-
this.hidden = !!t;
|
|
1396
|
-
return this;
|
|
1397
|
-
}
|
|
1398
|
-
_concatValue(t, e) {
|
|
1399
|
-
if (e === this.defaultValue || !Array.isArray(e)) return [
|
|
1400
|
-
t
|
|
1401
|
-
];
|
|
1402
|
-
return e.concat(t);
|
|
1403
|
-
}
|
|
1404
|
-
choices(t) {
|
|
1405
|
-
this.argChoices = t.slice();
|
|
1406
|
-
this.parseArg = (t, e)=>{
|
|
1407
|
-
if (!this.argChoices.includes(t)) throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
1408
|
-
if (this.variadic) return this._concatValue(t, e);
|
|
1409
|
-
return t;
|
|
1410
|
-
};
|
|
1411
|
-
return this;
|
|
1412
|
-
}
|
|
1413
|
-
name() {
|
|
1414
|
-
if (this.long) return this.long.replace(/^--/, "");
|
|
1415
|
-
return this.short.replace(/^-/, "");
|
|
1416
|
-
}
|
|
1417
|
-
attributeName() {
|
|
1418
|
-
return camelcase(this.name().replace(/^no-/, ""));
|
|
1419
|
-
}
|
|
1420
|
-
is(t) {
|
|
1421
|
-
return this.short === t || this.long === t;
|
|
1422
|
-
}
|
|
1423
|
-
isBoolean() {
|
|
1424
|
-
return !this.required && !this.optional && !this.negate;
|
|
1425
|
-
}
|
|
1578
|
+
e._aliases.push(t);
|
|
1579
|
+
return this;
|
|
1580
|
+
}
|
|
1581
|
+
aliases(t) {
|
|
1582
|
+
if (void 0 === t) return this._aliases;
|
|
1583
|
+
t.forEach((t)=>this.alias(t));
|
|
1584
|
+
return this;
|
|
1585
|
+
}
|
|
1586
|
+
usage(t) {
|
|
1587
|
+
if (void 0 === t) {
|
|
1588
|
+
if (this._usage) return this._usage;
|
|
1589
|
+
const t = this.registeredArguments.map((t)=>humanReadableArgName(t));
|
|
1590
|
+
return [].concat(this.options.length || null !== this._helpOption ? "[options]" : [], this.commands.length ? "[command]" : [], this.registeredArguments.length ? t : []).join(" ");
|
|
1426
1591
|
}
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1592
|
+
this._usage = t;
|
|
1593
|
+
return this;
|
|
1594
|
+
}
|
|
1595
|
+
name(t) {
|
|
1596
|
+
if (void 0 === t) return this._name;
|
|
1597
|
+
this._name = t;
|
|
1598
|
+
return this;
|
|
1599
|
+
}
|
|
1600
|
+
helpGroup(t) {
|
|
1601
|
+
if (void 0 === t) return this._helpGroupHeading ?? "";
|
|
1602
|
+
this._helpGroupHeading = t;
|
|
1603
|
+
return this;
|
|
1604
|
+
}
|
|
1605
|
+
commandsGroup(t) {
|
|
1606
|
+
if (void 0 === t) return this._defaultCommandGroup ?? "";
|
|
1607
|
+
this._defaultCommandGroup = t;
|
|
1608
|
+
return this;
|
|
1609
|
+
}
|
|
1610
|
+
optionsGroup(t) {
|
|
1611
|
+
if (void 0 === t) return this._defaultOptionGroup ?? "";
|
|
1612
|
+
this._defaultOptionGroup = t;
|
|
1613
|
+
return this;
|
|
1614
|
+
}
|
|
1615
|
+
_initOptionGroup(t) {
|
|
1616
|
+
if (this._defaultOptionGroup && !t.helpGroupHeading) t.helpGroup(this._defaultOptionGroup);
|
|
1617
|
+
}
|
|
1618
|
+
_initCommandGroup(t) {
|
|
1619
|
+
if (this._defaultCommandGroup && !t.helpGroup()) t.helpGroup(this._defaultCommandGroup);
|
|
1620
|
+
}
|
|
1621
|
+
nameFromFilename(t) {
|
|
1622
|
+
this._name = s.basename(t, s.extname(t));
|
|
1623
|
+
return this;
|
|
1624
|
+
}
|
|
1625
|
+
executableDir(t) {
|
|
1626
|
+
if (void 0 === t) return this._executableDir;
|
|
1627
|
+
this._executableDir = t;
|
|
1628
|
+
return this;
|
|
1629
|
+
}
|
|
1630
|
+
helpInformation(t) {
|
|
1631
|
+
const e = this.createHelp();
|
|
1632
|
+
const i = this._getOutputContext(t);
|
|
1633
|
+
e.prepareContext({
|
|
1634
|
+
error: i.error,
|
|
1635
|
+
helpWidth: i.helpWidth,
|
|
1636
|
+
outputHasColors: i.hasColors
|
|
1637
|
+
});
|
|
1638
|
+
const n = e.formatHelp(this, e);
|
|
1639
|
+
if (i.hasColors) return n;
|
|
1640
|
+
return this._outputConfiguration.stripColor(n);
|
|
1641
|
+
}
|
|
1642
|
+
_getOutputContext(t) {
|
|
1643
|
+
t = t || {};
|
|
1644
|
+
const e = !!t.error;
|
|
1645
|
+
let i;
|
|
1646
|
+
let n;
|
|
1647
|
+
let s;
|
|
1648
|
+
if (e) {
|
|
1649
|
+
i = (t)=>this._outputConfiguration.writeErr(t);
|
|
1650
|
+
n = this._outputConfiguration.getErrHasColors();
|
|
1651
|
+
s = this._outputConfiguration.getErrHelpWidth();
|
|
1652
|
+
} else {
|
|
1653
|
+
i = (t)=>this._outputConfiguration.writeOut(t);
|
|
1654
|
+
n = this._outputConfiguration.getOutHasColors();
|
|
1655
|
+
s = this._outputConfiguration.getOutHelpWidth();
|
|
1447
1656
|
}
|
|
1448
|
-
|
|
1449
|
-
|
|
1657
|
+
const write = (t)=>{
|
|
1658
|
+
if (!n) t = this._outputConfiguration.stripColor(t);
|
|
1659
|
+
return i(t);
|
|
1660
|
+
};
|
|
1661
|
+
return {
|
|
1662
|
+
error: e,
|
|
1663
|
+
write: write,
|
|
1664
|
+
hasColors: n,
|
|
1665
|
+
helpWidth: s
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
outputHelp(t) {
|
|
1669
|
+
let e;
|
|
1670
|
+
if ("function" == typeof t) {
|
|
1671
|
+
e = t;
|
|
1672
|
+
t = void 0;
|
|
1450
1673
|
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1674
|
+
const i = this._getOutputContext(t);
|
|
1675
|
+
const n = {
|
|
1676
|
+
error: i.error,
|
|
1677
|
+
write: i.write,
|
|
1678
|
+
command: this
|
|
1679
|
+
};
|
|
1680
|
+
this._getCommandAndAncestors().reverse().forEach((t)=>t.emit("beforeAllHelp", n));
|
|
1681
|
+
this.emit("beforeHelp", n);
|
|
1682
|
+
let s = this.helpInformation({
|
|
1683
|
+
error: i.error
|
|
1684
|
+
});
|
|
1685
|
+
if (e) {
|
|
1686
|
+
s = e(s);
|
|
1687
|
+
if ("string" != typeof s && !Buffer.isBuffer(s)) throw new Error("outputHelp callback must return a string or a Buffer");
|
|
1465
1688
|
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
if (
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
for(let t = 0; t <= e.length; t++)n[0][t] = t;
|
|
1479
|
-
for(let i = 1; i <= e.length; i++)for(let s = 1; s <= t.length; s++){
|
|
1480
|
-
let r = 1;
|
|
1481
|
-
r = t[s - 1] === e[i - 1] ? 0 : 1;
|
|
1482
|
-
n[s][i] = Math.min(n[s - 1][i] + 1, n[s][i - 1] + 1, n[s - 1][i - 1] + r);
|
|
1483
|
-
if (s > 1 && i > 1 && t[s - 1] === e[i - 2] && t[s - 2] === e[i - 1]) n[s][i] = Math.min(n[s][i], n[s - 2][i - 2] + 1);
|
|
1484
|
-
}
|
|
1485
|
-
return n[t.length][e.length];
|
|
1689
|
+
i.write(s);
|
|
1690
|
+
if (this._getHelpOption()?.long) this.emit(this._getHelpOption().long);
|
|
1691
|
+
this.emit("afterHelp", n);
|
|
1692
|
+
this._getCommandAndAncestors().forEach((t)=>t.emit("afterAllHelp", n));
|
|
1693
|
+
}
|
|
1694
|
+
helpOption(t, e) {
|
|
1695
|
+
if ("boolean" == typeof t) {
|
|
1696
|
+
if (t) {
|
|
1697
|
+
if (null === this._helpOption) this._helpOption = void 0;
|
|
1698
|
+
if (this._defaultOptionGroup) this._initOptionGroup(this._getHelpOption());
|
|
1699
|
+
} else this._helpOption = null;
|
|
1700
|
+
return this;
|
|
1486
1701
|
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1702
|
+
this._helpOption = this.createOption(t ?? "-h, --help", e ?? "display help for command");
|
|
1703
|
+
if (t || e) this._initOptionGroup(this._helpOption);
|
|
1704
|
+
return this;
|
|
1705
|
+
}
|
|
1706
|
+
_getHelpOption() {
|
|
1707
|
+
if (void 0 === this._helpOption) this.helpOption(void 0, void 0);
|
|
1708
|
+
return this._helpOption;
|
|
1709
|
+
}
|
|
1710
|
+
addHelpOption(t) {
|
|
1711
|
+
this._helpOption = t;
|
|
1712
|
+
this._initOptionGroup(t);
|
|
1713
|
+
return this;
|
|
1714
|
+
}
|
|
1715
|
+
help(t) {
|
|
1716
|
+
this.outputHelp(t);
|
|
1717
|
+
let e = Number(o.exitCode ?? 0);
|
|
1718
|
+
if (0 === e && t && "function" != typeof t && t.error) e = 1;
|
|
1719
|
+
this._exit(e, "commander.help", "(outputHelp)");
|
|
1720
|
+
}
|
|
1721
|
+
addHelpText(t, e) {
|
|
1722
|
+
const i = [
|
|
1723
|
+
"beforeAll",
|
|
1724
|
+
"before",
|
|
1725
|
+
"after",
|
|
1726
|
+
"afterAll"
|
|
1727
|
+
];
|
|
1728
|
+
if (!i.includes(t)) throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`);
|
|
1729
|
+
const n = `${t}Help`;
|
|
1730
|
+
this.on(n, (t)=>{
|
|
1731
|
+
let i;
|
|
1732
|
+
i = "function" == typeof e ? e({
|
|
1733
|
+
error: t.error,
|
|
1734
|
+
command: t.command
|
|
1735
|
+
}) : e;
|
|
1736
|
+
if (i) t.write(`${i}\n`);
|
|
1737
|
+
});
|
|
1738
|
+
return this;
|
|
1739
|
+
}
|
|
1740
|
+
_outputHelpIfRequested(t) {
|
|
1741
|
+
const e = this._getHelpOption();
|
|
1742
|
+
const i = e && t.find((t)=>e.is(t));
|
|
1743
|
+
if (i) {
|
|
1744
|
+
this.outputHelp();
|
|
1745
|
+
this._exit(0, "commander.helpDisplayed", "(outputHelp)");
|
|
1517
1746
|
}
|
|
1518
|
-
e.suggestSimilar = suggestSimilar;
|
|
1519
1747
|
}
|
|
1520
|
-
};
|
|
1521
|
-
var e = {};
|
|
1522
|
-
function __nccwpck_require__(i) {
|
|
1523
|
-
var n = e[i];
|
|
1524
|
-
if (void 0 !== n) return n.exports;
|
|
1525
|
-
var s = e[i] = {
|
|
1526
|
-
exports: {}
|
|
1527
|
-
};
|
|
1528
|
-
var r = true;
|
|
1529
|
-
try {
|
|
1530
|
-
t[i](s, s.exports, __nccwpck_require__);
|
|
1531
|
-
r = false;
|
|
1532
|
-
} finally{
|
|
1533
|
-
if (r) delete e[i];
|
|
1534
|
-
}
|
|
1535
|
-
return s.exports;
|
|
1536
1748
|
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1749
|
+
function incrementNodeInspectorPort(t) {
|
|
1750
|
+
return t.map((t)=>{
|
|
1751
|
+
if (!t.startsWith("--inspect")) return t;
|
|
1752
|
+
let e;
|
|
1753
|
+
let i = "127.0.0.1";
|
|
1754
|
+
let n = "9229";
|
|
1755
|
+
let s;
|
|
1756
|
+
if (null !== (s = t.match(/^(--inspect(-brk)?)$/))) e = s[1];
|
|
1757
|
+
else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))) {
|
|
1758
|
+
e = s[1];
|
|
1759
|
+
if (/^\d+$/.test(s[3])) n = s[3];
|
|
1760
|
+
else i = s[3];
|
|
1761
|
+
} else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))) {
|
|
1762
|
+
e = s[1];
|
|
1763
|
+
i = s[3];
|
|
1764
|
+
n = s[4];
|
|
1765
|
+
}
|
|
1766
|
+
if (e && "0" !== n) return `${e}=${i}:${parseInt(n) + 1}`;
|
|
1767
|
+
return t;
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
function useColor() {
|
|
1771
|
+
if (o.env.NO_COLOR || "0" === o.env.FORCE_COLOR || "false" === o.env.FORCE_COLOR) return false;
|
|
1772
|
+
if (o.env.FORCE_COLOR || void 0 !== o.env.CLICOLOR_FORCE) return true;
|
|
1773
|
+
}
|
|
1774
|
+
const l = new Command;
|
|
1775
|
+
const createCommand = (t)=>new Command(t);
|
|
1776
|
+
const createOption = (t, e)=>new Option(t, e);
|
|
1777
|
+
const createArgument = (t, e)=>new Argument(t, e);
|
|
1778
|
+
module.exports = e;
|
|
1540
1779
|
})();
|