@videre-ui/cli 0.0.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/README.md +15 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +9 -0
- package/node_modules/@videre-ui/core/README.md +15 -0
- package/node_modules/@videre-ui/core/build.ts +50 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/license +9 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/package.json +83 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/readme.md +297 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/index.js +225 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/@videre-ui/core/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/LICENSE.txt +21 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/README.md +463 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/bin/index.js +96 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/figlet.cjs +1314 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/figlet.mjs +1315 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/node-figlet.cjs +108 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/node-figlet.mjs +90 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/types/cjs/figlet.d.cts +119 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/types/cjs/node-figlet.d.cts +119 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/types/esm/figlet.d.ts +82 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/dist/types/esm/node-figlet.d.ts +82 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/1Row.flf +218 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/3-D.flf +823 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/3D Diagonal.flf +1670 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/3D-ASCII.flf +1028 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/3x5.flf +617 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/4Max.flf +411 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/5 Line Oblique.flf +617 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC 3 Line.flf +427 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC 3 Liv1.flf +427 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC AAA01.flf +1549 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Neko.flf +1043 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Razor.flf +733 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Razor2.flf +937 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Slash.flf +1039 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Slider.flf +631 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Thin.flf +733 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Tubes.flf +835 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/AMC Untitled.flf +835 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ANSI Regular.flf +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ANSI Shadow.flf +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ANSI-Compact.flf +1626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ASCII 12.flf +32804 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ASCII 9.flf +26822 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ASCII New Roman.flf +421 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Acrobatic.flf +1240 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Alligator.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Alligator2.flf +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Alpha.flf +2272 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Alphabet.flf +732 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Arrows.flf +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Avatar.flf +629 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/B1FF.flf +375 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Babyface Lame.flf +514 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Babyface Leet.flf +514 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Banner.flf +2494 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Banner3-D.flf +820 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Banner3.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Banner4.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Barbwire.flf +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Basic.flf +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bear.flf +930 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bell.flf +636 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Benjamin.flf +143 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big ASCII 12.flf +59723 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big ASCII 9.flf +47759 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Chief.flf +819 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Money-ne.flf +1148 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Money-nw.flf +1148 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Money-se.flf +1250 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Money-sw.flf +1250 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Mono 12.flf +59723 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big Mono 9.flf +47759 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Big.flf +2204 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bigfig.flf +334 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Binary.flf +372 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Block.flf +1691 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Blocks.flf +1134 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bloody.flf +1024 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/BlurVision ASCII.flf +922 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bolger.flf +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Braced.flf +527 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bright.flf +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Broadway KB.flf +324 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Broadway.flf +1152 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bubble.flf +1630 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Bulbhead.flf +434 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Caligraphy.flf +2157 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Caligraphy2.flf +2113 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Calvin S.flf +314 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cards.flf +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Catwalk.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Chiseled.flf +935 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Chunky.flf +517 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Circle.flf +186 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Coinstak.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cola.flf +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Colossal.flf +1140 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Computer.flf +717 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Contessa.flf +411 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Contrast.flf +615 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cosmike.flf +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cosmike2.flf +922 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Crawford.flf +842 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Crawford2.flf +842 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Crazy.flf +1343 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cricket.flf +842 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cursive.flf +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cyberlarge.flf +429 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cybermedium.flf +429 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cybersmall.flf +225 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Cygnet.flf +558 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/DANC4.flf +429 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/DOS Rebel.flf +1137 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/DWhistled.flf +1033 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Dancing Font.flf +731 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Decimal.flf +373 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Def Leppard.flf +5537 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Delta Corps Priest 1.flf +922 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/DiamFont.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Diamond.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Diet Cola.flf +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Digital.flf +1286 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Doh.flf +2554 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Doom.flf +833 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Dot Matrix.flf +1024 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Double Shorts.flf +341 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Double.flf +532 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Dr Pepper.flf +569 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Chess.flf +519 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Font.flf +885 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Italic.flf +885 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Piti.flf +547 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Robot.flf +625 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Wall.flf +417 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Efti Water.flf +417 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Electronic.flf +1232 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Elite.flf +518 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Emboss 2.flf +325 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Emboss.flf +325 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Epic.flf +935 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fender.flf +727 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Filter.flf +547 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fire Font-k.flf +947 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fire Font-s.flf +947 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Flipped.flf +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Flower Power.flf +1043 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Four Tops.flf +423 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fraktur.flf +1533 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fun Face.flf +731 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fun Faces.flf +731 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Future.flf +457 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Fuzzy.flf +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Georgi16.flf +3744 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Georgia11.flf +4073 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Ghost.flf +949 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Ghoulish.flf +731 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Glenyn.flf +441 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Goofy.flf +635 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Gothic.flf +935 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Graceful.flf +753 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Gradient.flf +922 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Graffiti.flf +630 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Greek.flf +950 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Heart Left.flf +424 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Heart Right.flf +423 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Henry 3D.flf +829 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Hex.flf +373 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Hieroglyphs.flf +457 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Hollywood.flf +1028 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Horizontal Left.flf +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Horizontal Right.flf +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/ICL-1900.flf +1345 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Impossible.flf +1236 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Invita.flf +615 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Isometric1.flf +1146 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Isometric2.flf +1146 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Isometric3.flf +1146 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Isometric4.flf +1146 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Italic.flf +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Ivrit.flf +900 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/JS Block Letters.flf +310 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/JS Bracket Letters.flf +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/JS Capital Curves.flf +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/JS Cursive.flf +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/JS Stick Letters.flf +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Jacky.flf +874 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Jazmine.flf +1030 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Jerusalem.flf +746 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Katakana.flf +823 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Kban.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Keyboard.flf +932 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Knob.flf +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Konto Slant.flf +232 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Konto.flf +232 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/LCD.flf +615 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Larry 3D 2.flf +924 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Larry 3D.flf +924 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Lean.flf +1691 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Letter.flf +840 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Letters.flf +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Lil Devil.flf +833 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Line Blocks.flf +522 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Linux.flf +422 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Lockergnome.flf +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Madrid.flf +416 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Marquee.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Maxfour.flf +423 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Merlin1.flf +841 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Merlin2.flf +943 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mike.flf +310 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mini.flf +899 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mirror.flf +1303 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mnemonic.flf +3702 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Modular.flf +732 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mono 12.flf +32804 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mono 9.flf +26822 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Morse.flf +189 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Morse2.flf +189 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Moscow.flf +623 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Mshebrew210.flf +422 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Muzzle.flf +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/NScript.flf +1654 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/NT Greek.flf +949 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/NV Script.flf +2107 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Nancyj-Fancy.flf +828 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Nancyj-Improved.flf +826 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Nancyj-Underlined.flf +826 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Nancyj.flf +826 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Nipples.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/O8.flf +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/OS2.flf +734 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Octal.flf +373 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Ogre.flf +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Old Banner.flf +721 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Pagga.flf +534 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Patorjk's Cheese.flf +1437 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Patorjk-HeX.flf +1235 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Pawp.flf +923 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Peaks Slant.flf +622 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Peaks.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Pebbles.flf +1028 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Pepper.flf +418 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Poison.flf +1239 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Puffy.flf +820 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Puzzle.flf +522 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Pyramid.flf +836 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rammstein.flf +726 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rebel.flf +1138 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rectangles.flf +614 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Red Phoenix.flf +734 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Relief.flf +717 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Relief2.flf +717 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Reverse.flf +1125 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Roman.flf +1028 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rot13.flf +367 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rotated.flf +323 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rounded.flf +717 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rowan Cap.flf +634 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Rozzo.flf +717 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/RubiFont.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Runic.flf +632 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Runyc.flf +633 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/S Blood.flf +634 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/SL Script.flf +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Santa Clara.flf +615 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Script.flf +1493 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Serifcap.flf +411 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Shaded Blocky.flf +618 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Shadow.flf +1101 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Shimrod.flf +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Short.flf +315 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Slant Relief.flf +934 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Slant.flf +1295 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Slide.flf +623 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small ASCII 12.flf +32804 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small ASCII 9.flf +26822 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Block.flf +1200 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Braille.flf +220 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Caps.flf +522 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Isometric1.flf +733 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Keyboard.flf +466 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Mono 12.flf +32804 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Mono 9.flf +26822 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Poison.flf +729 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Script.flf +1097 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Shadow.flf +899 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Slant.flf +1097 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small Tengwar.flf +312 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Small.flf +1097 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Soft.flf +742 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Speed.flf +1301 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Spliff.flf +527 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stacey.flf +739 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stampate.flf +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stampatello.flf +1380 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Standard.flf +2237 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Star Strips.flf +935 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Star Wars.flf +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stellar.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stforek.flf +423 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stick Letters.flf +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stop.flf +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Straight.flf +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Stronger Than All.flf +924 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Sub-Zero.flf +629 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Swamp Land.flf +828 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Swan.flf +990 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Sweet.flf +1339 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/THIS.flf +720 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tanja.flf +819 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tengwar.flf +1037 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Term.flf +600 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Terrace.flf +1026 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Test1.flf +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/The Edge.flf +720 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Thick.flf +525 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Thin.flf +625 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Thorned.flf +522 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Three Point.flf +321 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Ticks Slant.flf +622 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Ticks.flf +622 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tiles.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tinker-Toy.flf +727 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tmplr.flf +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tombstone.flf +523 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Train.flf +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Trek.flf +643 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tsalagi.flf +564 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Tubular.flf +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Twisted.flf +829 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Two Point.flf +219 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/USA Flag.flf +632 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Univers.flf +1137 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Upside Down Text.flf +117 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Varsity.flf +726 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Wavescape.flf +1636 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Wavy.flf +903 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Weird.flf +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Wet Letter.flf +726 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Whimsy.flf +1041 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/WideTerm.flf +132 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/Wow.flf +116 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/fonts/miniwi.flf +414 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/1Row.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/1Row.js +219 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3-D.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3-D.js +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3D Diagonal.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3D Diagonal.js +1670 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3D-ASCII.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3D-ASCII.js +1028 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3x5.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/3x5.js +618 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/4Max.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/4Max.js +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/5 Line Oblique.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/5 Line Oblique.js +617 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC 3 Line.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC 3 Line.js +428 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC 3 Liv1.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC 3 Liv1.js +428 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC AAA01.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC AAA01.js +1550 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Neko.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Neko.js +1044 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Razor.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Razor.js +734 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Razor2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Razor2.js +938 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Slash.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Slash.js +1040 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Slider.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Slider.js +632 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Thin.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Thin.js +734 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Tubes.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Tubes.js +836 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Untitled.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/AMC Untitled.js +836 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ANSI Regular.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ANSI Regular.js +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ANSI Shadow.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ANSI Shadow.js +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ANSI-Compact.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ANSI-Compact.js +1627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ASCII 12.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ASCII 12.js +32805 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ASCII 9.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ASCII 9.js +26823 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ASCII New Roman.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ASCII New Roman.js +422 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Acrobatic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Acrobatic.js +1241 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alligator.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alligator.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alligator2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alligator2.js +720 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alpha.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alpha.js +2273 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alphabet.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Alphabet.js +733 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Arrows.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Arrows.js +826 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Avatar.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Avatar.js +630 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/B1FF.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/B1FF.js +376 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Babyface Lame.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Babyface Lame.js +515 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Babyface Leet.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Babyface Leet.js +515 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner.js +2495 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner3-D.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner3-D.js +821 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner3.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner3.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner4.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Banner4.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Barbwire.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Barbwire.js +826 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Basic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Basic.js +826 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bear.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bear.js +930 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bell.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bell.js +637 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Benjamin.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Benjamin.js +144 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big ASCII 12.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big ASCII 12.js +59724 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big ASCII 9.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big ASCII 9.js +47760 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Chief.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Chief.js +820 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-ne.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-ne.js +1149 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-nw.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-nw.js +1149 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-se.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-se.js +1251 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-sw.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Money-sw.js +1251 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Mono 12.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Mono 12.js +59724 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Mono 9.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big Mono 9.js +47760 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Big.js +2205 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bigfig.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bigfig.js +335 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Binary.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Binary.js +373 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Block.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Block.js +1692 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Blocks.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Blocks.js +1135 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bloody.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bloody.js +1024 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/BlurVision ASCII.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/BlurVision ASCII.js +923 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bolger.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bolger.js +723 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Braced.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Braced.js +527 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bright.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bright.js +617 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Broadway KB.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Broadway KB.js +325 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Broadway.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Broadway.js +1153 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bubble.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bubble.js +1631 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bulbhead.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Bulbhead.js +435 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Caligraphy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Caligraphy.js +2158 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Caligraphy2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Caligraphy2.js +2114 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Calvin S.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Calvin S.js +314 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cards.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cards.js +628 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Catwalk.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Catwalk.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Chiseled.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Chiseled.js +935 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Chunky.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Chunky.js +518 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Circle.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Circle.js +187 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Coinstak.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Coinstak.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cola.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cola.js +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Colossal.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Colossal.js +1141 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Computer.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Computer.js +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Contessa.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Contessa.js +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Contrast.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Contrast.js +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cosmike.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cosmike.js +617 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cosmike2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cosmike2.js +923 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Crawford.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Crawford.js +843 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Crawford2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Crawford2.js +843 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Crazy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Crazy.js +1344 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cricket.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cricket.js +843 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cursive.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cursive.js +625 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cyberlarge.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cyberlarge.js +430 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cybermedium.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cybermedium.js +430 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cybersmall.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cybersmall.js +226 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cygnet.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Cygnet.js +558 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DANC4.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DANC4.js +430 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DOS Rebel.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DOS Rebel.js +1138 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DWhistled.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DWhistled.js +1034 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Dancing Font.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Dancing Font.js +732 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Decimal.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Decimal.js +374 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Def Leppard.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Def Leppard.js +5538 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Delta Corps Priest 1.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Delta Corps Priest 1.js +923 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DiamFont.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/DiamFont.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Diamond.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Diamond.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Diet Cola.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Diet Cola.js +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Digital.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Digital.js +1287 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Doh.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Doh.js +2555 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Doom.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Doom.js +834 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Dot Matrix.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Dot Matrix.js +1025 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Double Shorts.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Double Shorts.js +342 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Double.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Double.js +533 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Dr Pepper.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Dr Pepper.js +570 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Chess.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Chess.js +520 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Font.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Font.js +886 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Italic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Italic.js +886 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Piti.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Piti.js +548 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Robot.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Robot.js +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Wall.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Wall.js +418 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Water.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Efti Water.js +418 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Electronic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Electronic.js +1232 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Elite.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Elite.js +518 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Emboss 2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Emboss 2.js +326 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Emboss.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Emboss.js +326 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Epic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Epic.js +936 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fender.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fender.js +728 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Filter.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Filter.js +547 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fire Font-k.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fire Font-k.js +947 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fire Font-s.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fire Font-s.js +947 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Flipped.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Flipped.js +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Flower Power.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Flower Power.js +1043 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Four Tops.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Four Tops.js +424 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fraktur.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fraktur.js +1534 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fun Face.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fun Face.js +732 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fun Faces.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fun Faces.js +732 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Future.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Future.js +458 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fuzzy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Fuzzy.js +723 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Georgi16.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Georgi16.js +3745 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Georgia11.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Georgia11.js +4074 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ghost.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ghost.js +949 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ghoulish.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ghoulish.js +731 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Glenyn.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Glenyn.js +441 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Goofy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Goofy.js +636 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Gothic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Gothic.js +936 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Graceful.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Graceful.js +754 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Gradient.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Gradient.js +923 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Graffiti.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Graffiti.js +630 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Greek.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Greek.js +951 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Heart Left.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Heart Left.js +425 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Heart Right.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Heart Right.js +424 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Henry 3D.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Henry 3D.js +829 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Hex.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Hex.js +374 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Hieroglyphs.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Hieroglyphs.js +457 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Hollywood.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Hollywood.js +1029 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Horizontal Left.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Horizontal Left.js +625 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Horizontal Right.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Horizontal Right.js +625 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ICL-1900.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/ICL-1900.js +1346 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Impossible.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Impossible.js +1236 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Invita.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Invita.js +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric1.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric1.js +1147 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric2.js +1147 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric3.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric3.js +1147 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric4.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Isometric4.js +1147 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Italic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Italic.js +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ivrit.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ivrit.js +901 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Block Letters.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Block Letters.js +311 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Bracket Letters.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Bracket Letters.js +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Capital Curves.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Capital Curves.js +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Cursive.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Cursive.js +617 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Stick Letters.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/JS Stick Letters.js +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Jacky.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Jacky.js +875 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Jazmine.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Jazmine.js +1031 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Jerusalem.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Jerusalem.js +747 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Katakana.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Katakana.js +824 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Kban.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Kban.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Keyboard.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Keyboard.js +933 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Knob.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Knob.js +420 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Konto Slant.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Konto Slant.js +233 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Konto.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Konto.js +233 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/LCD.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/LCD.js +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Larry 3D 2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Larry 3D 2.js +925 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Larry 3D.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Larry 3D.js +925 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Lean.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Lean.js +1692 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Letter.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Letter.js +841 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Letters.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Letters.js +625 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Lil Devil.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Lil Devil.js +834 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Line Blocks.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Line Blocks.js +522 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Linux.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Linux.js +423 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Lockergnome.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Lockergnome.js +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Madrid.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Madrid.js +417 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Marquee.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Marquee.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Maxfour.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Maxfour.js +424 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Merlin1.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Merlin1.js +841 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Merlin2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Merlin2.js +943 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mike.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mike.js +311 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mini.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mini.js +900 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mirror.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mirror.js +1304 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mnemonic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mnemonic.js +3703 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Modular.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Modular.js +733 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mono 12.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mono 12.js +32805 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mono 9.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mono 9.js +26823 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Morse.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Morse.js +190 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Morse2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Morse2.js +190 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Moscow.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Moscow.js +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mshebrew210.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Mshebrew210.js +423 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Muzzle.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Muzzle.js +421 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/NScript.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/NScript.js +1655 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/NT Greek.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/NT Greek.js +950 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/NV Script.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/NV Script.js +2108 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj-Fancy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj-Fancy.js +829 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj-Improved.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj-Improved.js +827 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj-Underlined.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj-Underlined.js +827 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nancyj.js +827 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nipples.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Nipples.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/O8.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/O8.js +628 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/OS2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/OS2.js +735 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Octal.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Octal.js +374 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ogre.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ogre.js +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Old Banner.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Old Banner.js +722 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pagga.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pagga.js +535 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Patorjk's Cheese.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Patorjk's Cheese.js +1437 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Patorjk-HeX.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Patorjk-HeX.js +1235 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pawp.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pawp.js +924 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Peaks Slant.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Peaks Slant.js +623 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Peaks.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Peaks.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pebbles.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pebbles.js +1029 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pepper.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pepper.js +419 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Poison.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Poison.js +1240 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Puffy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Puffy.js +821 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Puzzle.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Puzzle.js +523 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pyramid.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Pyramid.js +837 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rammstein.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rammstein.js +726 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rebel.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rebel.js +1139 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rectangles.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rectangles.js +615 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Red Phoenix.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Red Phoenix.js +735 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Relief.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Relief.js +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Relief2.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Relief2.js +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Reverse.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Reverse.js +1126 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Roman.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Roman.js +1029 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rot13.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rot13.js +368 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rotated.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rotated.js +323 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rounded.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rounded.js +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rowan Cap.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rowan Cap.js +635 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rozzo.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Rozzo.js +718 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/RubiFont.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/RubiFont.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Runic.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Runic.js +633 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Runyc.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Runyc.js +634 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/S Blood.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/S Blood.js +635 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/SL Script.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/SL Script.js +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Santa Clara.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Santa Clara.js +616 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Script.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Script.js +1494 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Serifcap.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Serifcap.js +412 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Shaded Blocky.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Shaded Blocky.js +619 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Shadow.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Shadow.js +1102 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Shimrod.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Shimrod.js +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Short.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Short.js +316 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Slant Relief.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Slant Relief.js +935 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Slant.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Slant.js +1296 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Slide.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Slide.js +624 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small ASCII 12.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small ASCII 12.js +32805 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small ASCII 9.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small ASCII 9.js +26823 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Block.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Block.js +1201 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Braille.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Braille.js +221 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Caps.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Caps.js +522 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Isometric1.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Isometric1.js +734 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Keyboard.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Keyboard.js +467 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Mono 12.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Mono 12.js +32805 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Mono 9.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Mono 9.js +26823 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Poison.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Poison.js +730 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Script.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Script.js +1098 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Shadow.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Shadow.js +900 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Slant.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Slant.js +1098 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Tengwar.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small Tengwar.js +313 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Small.js +1098 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Soft.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Soft.js +742 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Speed.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Speed.js +1302 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Spliff.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Spliff.js +527 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stacey.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stacey.js +740 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stampate.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stampate.js +723 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stampatello.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stampatello.js +1381 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Standard.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Standard.js +2237 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Star Strips.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Star Strips.js +936 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Star Wars.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Star Wars.js +720 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stellar.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stellar.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stforek.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stforek.js +424 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stick Letters.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stick Letters.js +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stop.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stop.js +719 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Straight.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Straight.js +414 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stronger Than All.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Stronger Than All.js +924 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Sub-Zero.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Sub-Zero.js +630 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Swamp Land.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Swamp Land.js +829 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Swan.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Swan.js +990 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Sweet.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Sweet.js +1340 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/THIS.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/THIS.js +721 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tanja.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tanja.js +820 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tengwar.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tengwar.js +1038 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Term.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Term.js +601 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Terrace.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Terrace.js +1027 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Test1.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Test1.js +421 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/The Edge.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/The Edge.js +721 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Thick.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Thick.js +526 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Thin.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Thin.js +626 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Thorned.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Thorned.js +523 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Three Point.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Three Point.js +322 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ticks Slant.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ticks Slant.js +623 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ticks.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Ticks.js +623 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tiles.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tiles.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tinker-Toy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tinker-Toy.js +728 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tombstone.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tombstone.js +524 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Train.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Train.js +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Trek.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Trek.js +644 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tsalagi.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tsalagi.js +565 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tubular.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Tubular.js +825 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Twisted.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Twisted.js +829 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Two Point.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Two Point.js +220 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/USA Flag.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/USA Flag.js +633 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Univers.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Univers.js +1138 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Upside Down Text.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Upside Down Text.js +118 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Varsity.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Varsity.js +726 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wavescape.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wavescape.js +1636 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wavy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wavy.js +904 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Weird.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Weird.js +627 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wet Letter.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wet Letter.js +727 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Whimsy.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Whimsy.js +1042 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/WideTerm.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/WideTerm.js +133 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wow.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/Wow.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/babyface-lame.d.ts +3 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/babyface-lame.js +515 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/babyface-leet.d.ts +3 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/babyface-leet.js +515 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/miniwi.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/miniwi.js +415 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/tmplr.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/importable-fonts/tmplr.js +413 -0
- package/node_modules/@videre-ui/core/node_modules/figlet/package.json +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/LICENSE +21 -0
- package/node_modules/@videre-ui/core/node_modules/zod/README.md +208 -0
- package/node_modules/@videre-ui/core/node_modules/zod/index.cjs +33 -0
- package/node_modules/@videre-ui/core/node_modules/zod/index.d.cts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/index.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/index.js +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/locales/index.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/locales/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/mini/index.cjs +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/mini/index.d.cts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/mini/index.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/mini/index.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/mini/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/package.json +135 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/index.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/mini/index.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/external.ts +51 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/from-json-schema.ts +536 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/schemas.ts +2352 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +537 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/function.test.ts +308 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/index.test.ts +898 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/object.test.ts +609 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/optional.test.ts +136 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/partial.test.ts +340 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/record.test.ts +525 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/refine.test.ts +605 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/registries.test.ts +208 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/string.test.ts +1152 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2755 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/tuple.test.ts +181 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/api.ts +1681 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/checks.ts +1287 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/core.ts +128 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/json-schema-generator.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/json-schema-processors.ts +630 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/regexes.ts +182 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/registries.ts +108 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/schemas.ts +4418 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/to-json-schema.ts +554 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/util.ts +921 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/bg.ts +136 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/da.ts +141 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/en.ts +128 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/es.ts +159 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/he.ts +256 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/index.ts +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/is.ts +127 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ka.ts +138 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/km.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/lt.ts +265 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/uk.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/yo.ts +131 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/schemas.ts +1781 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/index.test.ts +922 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/object.test.ts +200 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
- package/node_modules/@videre-ui/core/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/external.js +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/index.js +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/from-json-schema.cjs +511 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/from-json-schema.d.cts +10 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/from-json-schema.d.ts +10 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/from-json-schema.js +485 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/schemas.cjs +1240 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/schemas.d.cts +726 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/schemas.d.ts +726 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/classic/schemas.js +1126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/api.cjs +1109 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/api.d.cts +304 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/api.d.ts +304 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/api.js +969 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/checks.cjs +595 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/checks.js +569 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/core.cjs +83 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/core.d.cts +52 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/core.d.ts +52 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/core.js +76 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/errors.cjs +213 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/errors.d.cts +219 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/errors.d.ts +219 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/errors.js +182 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-generator.d.cts +64 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-generator.d.ts +64 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-processors.cjs +617 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema-processors.js +574 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/regexes.cjs +165 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/regexes.js +132 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/registries.cjs +59 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/registries.js +54 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/schemas.cjs +2040 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/schemas.d.cts +1135 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/schemas.d.ts +1135 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/schemas.js +2009 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/to-json-schema.cjs +392 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/to-json-schema.d.cts +113 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/to-json-schema.d.ts +113 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/to-json-schema.js +383 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/util.cjs +669 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/util.d.cts +198 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/util.d.ts +198 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/util.js +611 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/index.js +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ar.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/az.cjs +142 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/be.cjs +191 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/bg.cjs +156 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/bg.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/bg.js +128 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ca.cjs +145 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/cs.cjs +162 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/da.cjs +158 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/da.js +131 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/de.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/en.cjs +146 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/en.js +118 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/es.cjs +176 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/es.js +149 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fa.cjs +149 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fi.cjs +149 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr-CA.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/he.cjs +255 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/he.js +228 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/hu.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/id.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/index.cjs +100 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/index.d.cts +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/index.d.ts +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/index.js +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/is.cjs +145 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/is.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/is.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/it.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ja.cjs +142 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ka.cjs +153 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ka.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ka.js +125 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/km.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/km.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ko.cjs +148 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/lt.cjs +258 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/lt.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/lt.js +230 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/mk.cjs +145 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ms.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/nl.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/no.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ota.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pl.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ps.cjs +149 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pt.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ru.cjs +191 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sl.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sv.cjs +145 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ta.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/th.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/uk.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/uk.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ur.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/vi.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/yo.cjs +142 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/yo.js +115 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-CN.cjs +143 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-TW.cjs +144 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/schemas.cjs +929 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/schemas.d.cts +421 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/schemas.d.ts +421 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/mini/schemas.js +809 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4/package.json +6 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4-mini/index.js +1 -0
- package/node_modules/@videre-ui/core/node_modules/zod/v4-mini/package.json +6 -0
- package/node_modules/@videre-ui/core/package.json +24 -0
- package/node_modules/@videre-ui/core/src/config/index.ts +53 -0
- package/node_modules/@videre-ui/core/src/index.ts +3 -0
- package/node_modules/@videre-ui/core/src/logger/index.ts +84 -0
- package/node_modules/@videre-ui/core/src/utils/index.ts +13 -0
- package/node_modules/@videre-ui/core/tsconfig.json +4 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1159 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +150 -0
- package/node_modules/commander/lib/command.js +2777 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +747 -0
- package/node_modules/commander/lib/option.js +380 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +82 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/package.json +30 -0
|
@@ -0,0 +1,2777 @@
|
|
|
1
|
+
const EventEmitter = require('node:events').EventEmitter;
|
|
2
|
+
const childProcess = require('node:child_process');
|
|
3
|
+
const path = require('node:path');
|
|
4
|
+
const fs = require('node:fs');
|
|
5
|
+
const process = require('node:process');
|
|
6
|
+
|
|
7
|
+
const { Argument, humanReadableArgName } = require('./argument.js');
|
|
8
|
+
const { CommanderError } = require('./error.js');
|
|
9
|
+
const { Help, stripColor } = require('./help.js');
|
|
10
|
+
const { Option, DualOptions } = require('./option.js');
|
|
11
|
+
const { suggestSimilar } = require('./suggestSimilar');
|
|
12
|
+
|
|
13
|
+
class Command extends EventEmitter {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize a new `Command`.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} [name]
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
constructor(name) {
|
|
21
|
+
super();
|
|
22
|
+
/** @type {Command[]} */
|
|
23
|
+
this.commands = [];
|
|
24
|
+
/** @type {Option[]} */
|
|
25
|
+
this.options = [];
|
|
26
|
+
this.parent = null;
|
|
27
|
+
this._allowUnknownOption = false;
|
|
28
|
+
this._allowExcessArguments = false;
|
|
29
|
+
/** @type {Argument[]} */
|
|
30
|
+
this.registeredArguments = [];
|
|
31
|
+
this._args = this.registeredArguments; // deprecated old name
|
|
32
|
+
/** @type {string[]} */
|
|
33
|
+
this.args = []; // cli args with options removed
|
|
34
|
+
this.rawArgs = [];
|
|
35
|
+
this.processedArgs = []; // like .args but after custom processing and collecting variadic
|
|
36
|
+
this._scriptPath = null;
|
|
37
|
+
this._name = name || '';
|
|
38
|
+
this._optionValues = {};
|
|
39
|
+
this._optionValueSources = {}; // default, env, cli etc
|
|
40
|
+
this._storeOptionsAsProperties = false;
|
|
41
|
+
this._actionHandler = null;
|
|
42
|
+
this._executableHandler = false;
|
|
43
|
+
this._executableFile = null; // custom name for executable
|
|
44
|
+
this._executableDir = null; // custom search directory for subcommands
|
|
45
|
+
this._defaultCommandName = null;
|
|
46
|
+
this._exitCallback = null;
|
|
47
|
+
this._aliases = [];
|
|
48
|
+
this._combineFlagAndOptionalValue = true;
|
|
49
|
+
this._description = '';
|
|
50
|
+
this._summary = '';
|
|
51
|
+
this._argsDescription = undefined; // legacy
|
|
52
|
+
this._enablePositionalOptions = false;
|
|
53
|
+
this._passThroughOptions = false;
|
|
54
|
+
this._lifeCycleHooks = {}; // a hash of arrays
|
|
55
|
+
/** @type {(boolean | string)} */
|
|
56
|
+
this._showHelpAfterError = false;
|
|
57
|
+
this._showSuggestionAfterError = true;
|
|
58
|
+
this._savedState = null; // used in save/restoreStateBeforeParse
|
|
59
|
+
|
|
60
|
+
// see configureOutput() for docs
|
|
61
|
+
this._outputConfiguration = {
|
|
62
|
+
writeOut: (str) => process.stdout.write(str),
|
|
63
|
+
writeErr: (str) => process.stderr.write(str),
|
|
64
|
+
outputError: (str, write) => write(str),
|
|
65
|
+
getOutHelpWidth: () =>
|
|
66
|
+
process.stdout.isTTY ? process.stdout.columns : undefined,
|
|
67
|
+
getErrHelpWidth: () =>
|
|
68
|
+
process.stderr.isTTY ? process.stderr.columns : undefined,
|
|
69
|
+
getOutHasColors: () =>
|
|
70
|
+
useColor() ?? (process.stdout.isTTY && process.stdout.hasColors?.()),
|
|
71
|
+
getErrHasColors: () =>
|
|
72
|
+
useColor() ?? (process.stderr.isTTY && process.stderr.hasColors?.()),
|
|
73
|
+
stripColor: (str) => stripColor(str),
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
this._hidden = false;
|
|
77
|
+
/** @type {(Option | null | undefined)} */
|
|
78
|
+
this._helpOption = undefined; // Lazy created on demand. May be null if help option is disabled.
|
|
79
|
+
this._addImplicitHelpCommand = undefined; // undecided whether true or false yet, not inherited
|
|
80
|
+
/** @type {Command} */
|
|
81
|
+
this._helpCommand = undefined; // lazy initialised, inherited
|
|
82
|
+
this._helpConfiguration = {};
|
|
83
|
+
/** @type {string | undefined} */
|
|
84
|
+
this._helpGroupHeading = undefined; // soft initialised when added to parent
|
|
85
|
+
/** @type {string | undefined} */
|
|
86
|
+
this._defaultCommandGroup = undefined;
|
|
87
|
+
/** @type {string | undefined} */
|
|
88
|
+
this._defaultOptionGroup = undefined;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Copy settings that are useful to have in common across root command and subcommands.
|
|
93
|
+
*
|
|
94
|
+
* (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
|
|
95
|
+
*
|
|
96
|
+
* @param {Command} sourceCommand
|
|
97
|
+
* @return {Command} `this` command for chaining
|
|
98
|
+
*/
|
|
99
|
+
copyInheritedSettings(sourceCommand) {
|
|
100
|
+
this._outputConfiguration = sourceCommand._outputConfiguration;
|
|
101
|
+
this._helpOption = sourceCommand._helpOption;
|
|
102
|
+
this._helpCommand = sourceCommand._helpCommand;
|
|
103
|
+
this._helpConfiguration = sourceCommand._helpConfiguration;
|
|
104
|
+
this._exitCallback = sourceCommand._exitCallback;
|
|
105
|
+
this._storeOptionsAsProperties = sourceCommand._storeOptionsAsProperties;
|
|
106
|
+
this._combineFlagAndOptionalValue =
|
|
107
|
+
sourceCommand._combineFlagAndOptionalValue;
|
|
108
|
+
this._allowExcessArguments = sourceCommand._allowExcessArguments;
|
|
109
|
+
this._enablePositionalOptions = sourceCommand._enablePositionalOptions;
|
|
110
|
+
this._showHelpAfterError = sourceCommand._showHelpAfterError;
|
|
111
|
+
this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError;
|
|
112
|
+
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @returns {Command[]}
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
_getCommandAndAncestors() {
|
|
122
|
+
const result = [];
|
|
123
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
124
|
+
for (let command = this; command; command = command.parent) {
|
|
125
|
+
result.push(command);
|
|
126
|
+
}
|
|
127
|
+
return result;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Define a command.
|
|
132
|
+
*
|
|
133
|
+
* There are two styles of command: pay attention to where to put the description.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* // Command implemented using action handler (description is supplied separately to `.command`)
|
|
137
|
+
* program
|
|
138
|
+
* .command('clone <source> [destination]')
|
|
139
|
+
* .description('clone a repository into a newly created directory')
|
|
140
|
+
* .action((source, destination) => {
|
|
141
|
+
* console.log('clone command called');
|
|
142
|
+
* });
|
|
143
|
+
*
|
|
144
|
+
* // Command implemented using separate executable file (description is second parameter to `.command`)
|
|
145
|
+
* program
|
|
146
|
+
* .command('start <service>', 'start named service')
|
|
147
|
+
* .command('stop [service]', 'stop named service, or all if no name supplied');
|
|
148
|
+
*
|
|
149
|
+
* @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
|
|
150
|
+
* @param {(object | string)} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable)
|
|
151
|
+
* @param {object} [execOpts] - configuration options (for executable)
|
|
152
|
+
* @return {Command} returns new command for action handler, or `this` for executable command
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
|
|
156
|
+
let desc = actionOptsOrExecDesc;
|
|
157
|
+
let opts = execOpts;
|
|
158
|
+
if (typeof desc === 'object' && desc !== null) {
|
|
159
|
+
opts = desc;
|
|
160
|
+
desc = null;
|
|
161
|
+
}
|
|
162
|
+
opts = opts || {};
|
|
163
|
+
const [, name, args] = nameAndArgs.match(/([^ ]+) *(.*)/);
|
|
164
|
+
|
|
165
|
+
const cmd = this.createCommand(name);
|
|
166
|
+
if (desc) {
|
|
167
|
+
cmd.description(desc);
|
|
168
|
+
cmd._executableHandler = true;
|
|
169
|
+
}
|
|
170
|
+
if (opts.isDefault) this._defaultCommandName = cmd._name;
|
|
171
|
+
cmd._hidden = !!(opts.noHelp || opts.hidden); // noHelp is deprecated old name for hidden
|
|
172
|
+
cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor
|
|
173
|
+
if (args) cmd.arguments(args);
|
|
174
|
+
this._registerCommand(cmd);
|
|
175
|
+
cmd.parent = this;
|
|
176
|
+
cmd.copyInheritedSettings(this);
|
|
177
|
+
|
|
178
|
+
if (desc) return this;
|
|
179
|
+
return cmd;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Factory routine to create a new unattached command.
|
|
184
|
+
*
|
|
185
|
+
* See .command() for creating an attached subcommand, which uses this routine to
|
|
186
|
+
* create the command. You can override createCommand to customise subcommands.
|
|
187
|
+
*
|
|
188
|
+
* @param {string} [name]
|
|
189
|
+
* @return {Command} new command
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
createCommand(name) {
|
|
193
|
+
return new Command(name);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* You can customise the help with a subclass of Help by overriding createHelp,
|
|
198
|
+
* or by overriding Help properties using configureHelp().
|
|
199
|
+
*
|
|
200
|
+
* @return {Help}
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
createHelp() {
|
|
204
|
+
return Object.assign(new Help(), this.configureHelp());
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* You can customise the help by overriding Help properties using configureHelp(),
|
|
209
|
+
* or with a subclass of Help by overriding createHelp().
|
|
210
|
+
*
|
|
211
|
+
* @param {object} [configuration] - configuration options
|
|
212
|
+
* @return {(Command | object)} `this` command for chaining, or stored configuration
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
configureHelp(configuration) {
|
|
216
|
+
if (configuration === undefined) return this._helpConfiguration;
|
|
217
|
+
|
|
218
|
+
this._helpConfiguration = configuration;
|
|
219
|
+
return this;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The default output goes to stdout and stderr. You can customise this for special
|
|
224
|
+
* applications. You can also customise the display of errors by overriding outputError.
|
|
225
|
+
*
|
|
226
|
+
* The configuration properties are all functions:
|
|
227
|
+
*
|
|
228
|
+
* // change how output being written, defaults to stdout and stderr
|
|
229
|
+
* writeOut(str)
|
|
230
|
+
* writeErr(str)
|
|
231
|
+
* // change how output being written for errors, defaults to writeErr
|
|
232
|
+
* outputError(str, write) // used for displaying errors and not used for displaying help
|
|
233
|
+
* // specify width for wrapping help
|
|
234
|
+
* getOutHelpWidth()
|
|
235
|
+
* getErrHelpWidth()
|
|
236
|
+
* // color support, currently only used with Help
|
|
237
|
+
* getOutHasColors()
|
|
238
|
+
* getErrHasColors()
|
|
239
|
+
* stripColor() // used to remove ANSI escape codes if output does not have colors
|
|
240
|
+
*
|
|
241
|
+
* @param {object} [configuration] - configuration options
|
|
242
|
+
* @return {(Command | object)} `this` command for chaining, or stored configuration
|
|
243
|
+
*/
|
|
244
|
+
|
|
245
|
+
configureOutput(configuration) {
|
|
246
|
+
if (configuration === undefined) return this._outputConfiguration;
|
|
247
|
+
|
|
248
|
+
this._outputConfiguration = {
|
|
249
|
+
...this._outputConfiguration,
|
|
250
|
+
...configuration,
|
|
251
|
+
};
|
|
252
|
+
return this;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Display the help or a custom message after an error occurs.
|
|
257
|
+
*
|
|
258
|
+
* @param {(boolean|string)} [displayHelp]
|
|
259
|
+
* @return {Command} `this` command for chaining
|
|
260
|
+
*/
|
|
261
|
+
showHelpAfterError(displayHelp = true) {
|
|
262
|
+
if (typeof displayHelp !== 'string') displayHelp = !!displayHelp;
|
|
263
|
+
this._showHelpAfterError = displayHelp;
|
|
264
|
+
return this;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Display suggestion of similar commands for unknown commands, or options for unknown options.
|
|
269
|
+
*
|
|
270
|
+
* @param {boolean} [displaySuggestion]
|
|
271
|
+
* @return {Command} `this` command for chaining
|
|
272
|
+
*/
|
|
273
|
+
showSuggestionAfterError(displaySuggestion = true) {
|
|
274
|
+
this._showSuggestionAfterError = !!displaySuggestion;
|
|
275
|
+
return this;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Add a prepared subcommand.
|
|
280
|
+
*
|
|
281
|
+
* See .command() for creating an attached subcommand which inherits settings from its parent.
|
|
282
|
+
*
|
|
283
|
+
* @param {Command} cmd - new subcommand
|
|
284
|
+
* @param {object} [opts] - configuration options
|
|
285
|
+
* @return {Command} `this` command for chaining
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
addCommand(cmd, opts) {
|
|
289
|
+
if (!cmd._name) {
|
|
290
|
+
throw new Error(`Command passed to .addCommand() must have a name
|
|
291
|
+
- specify the name in Command constructor or using .name()`);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
opts = opts || {};
|
|
295
|
+
if (opts.isDefault) this._defaultCommandName = cmd._name;
|
|
296
|
+
if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation
|
|
297
|
+
|
|
298
|
+
this._registerCommand(cmd);
|
|
299
|
+
cmd.parent = this;
|
|
300
|
+
cmd._checkForBrokenPassThrough();
|
|
301
|
+
|
|
302
|
+
return this;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Factory routine to create a new unattached argument.
|
|
307
|
+
*
|
|
308
|
+
* See .argument() for creating an attached argument, which uses this routine to
|
|
309
|
+
* create the argument. You can override createArgument to return a custom argument.
|
|
310
|
+
*
|
|
311
|
+
* @param {string} name
|
|
312
|
+
* @param {string} [description]
|
|
313
|
+
* @return {Argument} new argument
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
createArgument(name, description) {
|
|
317
|
+
return new Argument(name, description);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Define argument syntax for command.
|
|
322
|
+
*
|
|
323
|
+
* The default is that the argument is required, and you can explicitly
|
|
324
|
+
* indicate this with <> around the name. Put [] around the name for an optional argument.
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* program.argument('<input-file>');
|
|
328
|
+
* program.argument('[output-file]');
|
|
329
|
+
*
|
|
330
|
+
* @param {string} name
|
|
331
|
+
* @param {string} [description]
|
|
332
|
+
* @param {(Function|*)} [parseArg] - custom argument processing function or default value
|
|
333
|
+
* @param {*} [defaultValue]
|
|
334
|
+
* @return {Command} `this` command for chaining
|
|
335
|
+
*/
|
|
336
|
+
argument(name, description, parseArg, defaultValue) {
|
|
337
|
+
const argument = this.createArgument(name, description);
|
|
338
|
+
if (typeof parseArg === 'function') {
|
|
339
|
+
argument.default(defaultValue).argParser(parseArg);
|
|
340
|
+
} else {
|
|
341
|
+
argument.default(parseArg);
|
|
342
|
+
}
|
|
343
|
+
this.addArgument(argument);
|
|
344
|
+
return this;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Define argument syntax for command, adding multiple at once (without descriptions).
|
|
349
|
+
*
|
|
350
|
+
* See also .argument().
|
|
351
|
+
*
|
|
352
|
+
* @example
|
|
353
|
+
* program.arguments('<cmd> [env]');
|
|
354
|
+
*
|
|
355
|
+
* @param {string} names
|
|
356
|
+
* @return {Command} `this` command for chaining
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
arguments(names) {
|
|
360
|
+
names
|
|
361
|
+
.trim()
|
|
362
|
+
.split(/ +/)
|
|
363
|
+
.forEach((detail) => {
|
|
364
|
+
this.argument(detail);
|
|
365
|
+
});
|
|
366
|
+
return this;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Define argument syntax for command, adding a prepared argument.
|
|
371
|
+
*
|
|
372
|
+
* @param {Argument} argument
|
|
373
|
+
* @return {Command} `this` command for chaining
|
|
374
|
+
*/
|
|
375
|
+
addArgument(argument) {
|
|
376
|
+
const previousArgument = this.registeredArguments.slice(-1)[0];
|
|
377
|
+
if (previousArgument?.variadic) {
|
|
378
|
+
throw new Error(
|
|
379
|
+
`only the last argument can be variadic '${previousArgument.name()}'`,
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
if (
|
|
383
|
+
argument.required &&
|
|
384
|
+
argument.defaultValue !== undefined &&
|
|
385
|
+
argument.parseArg === undefined
|
|
386
|
+
) {
|
|
387
|
+
throw new Error(
|
|
388
|
+
`a default value for a required argument is never used: '${argument.name()}'`,
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
this.registeredArguments.push(argument);
|
|
392
|
+
return this;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Customise or override default help command. By default a help command is automatically added if your command has subcommands.
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* program.helpCommand('help [cmd]');
|
|
400
|
+
* program.helpCommand('help [cmd]', 'show help');
|
|
401
|
+
* program.helpCommand(false); // suppress default help command
|
|
402
|
+
* program.helpCommand(true); // add help command even if no subcommands
|
|
403
|
+
*
|
|
404
|
+
* @param {string|boolean} enableOrNameAndArgs - enable with custom name and/or arguments, or boolean to override whether added
|
|
405
|
+
* @param {string} [description] - custom description
|
|
406
|
+
* @return {Command} `this` command for chaining
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
helpCommand(enableOrNameAndArgs, description) {
|
|
410
|
+
if (typeof enableOrNameAndArgs === 'boolean') {
|
|
411
|
+
this._addImplicitHelpCommand = enableOrNameAndArgs;
|
|
412
|
+
if (enableOrNameAndArgs && this._defaultCommandGroup) {
|
|
413
|
+
// make the command to store the group
|
|
414
|
+
this._initCommandGroup(this._getHelpCommand());
|
|
415
|
+
}
|
|
416
|
+
return this;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const nameAndArgs = enableOrNameAndArgs ?? 'help [command]';
|
|
420
|
+
const [, helpName, helpArgs] = nameAndArgs.match(/([^ ]+) *(.*)/);
|
|
421
|
+
const helpDescription = description ?? 'display help for command';
|
|
422
|
+
|
|
423
|
+
const helpCommand = this.createCommand(helpName);
|
|
424
|
+
helpCommand.helpOption(false);
|
|
425
|
+
if (helpArgs) helpCommand.arguments(helpArgs);
|
|
426
|
+
if (helpDescription) helpCommand.description(helpDescription);
|
|
427
|
+
|
|
428
|
+
this._addImplicitHelpCommand = true;
|
|
429
|
+
this._helpCommand = helpCommand;
|
|
430
|
+
// init group unless lazy create
|
|
431
|
+
if (enableOrNameAndArgs || description) this._initCommandGroup(helpCommand);
|
|
432
|
+
|
|
433
|
+
return this;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Add prepared custom help command.
|
|
438
|
+
*
|
|
439
|
+
* @param {(Command|string|boolean)} helpCommand - custom help command, or deprecated enableOrNameAndArgs as for `.helpCommand()`
|
|
440
|
+
* @param {string} [deprecatedDescription] - deprecated custom description used with custom name only
|
|
441
|
+
* @return {Command} `this` command for chaining
|
|
442
|
+
*/
|
|
443
|
+
addHelpCommand(helpCommand, deprecatedDescription) {
|
|
444
|
+
// If not passed an object, call through to helpCommand for backwards compatibility,
|
|
445
|
+
// as addHelpCommand was originally used like helpCommand is now.
|
|
446
|
+
if (typeof helpCommand !== 'object') {
|
|
447
|
+
this.helpCommand(helpCommand, deprecatedDescription);
|
|
448
|
+
return this;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
this._addImplicitHelpCommand = true;
|
|
452
|
+
this._helpCommand = helpCommand;
|
|
453
|
+
this._initCommandGroup(helpCommand);
|
|
454
|
+
return this;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Lazy create help command.
|
|
459
|
+
*
|
|
460
|
+
* @return {(Command|null)}
|
|
461
|
+
* @package
|
|
462
|
+
*/
|
|
463
|
+
_getHelpCommand() {
|
|
464
|
+
const hasImplicitHelpCommand =
|
|
465
|
+
this._addImplicitHelpCommand ??
|
|
466
|
+
(this.commands.length &&
|
|
467
|
+
!this._actionHandler &&
|
|
468
|
+
!this._findCommand('help'));
|
|
469
|
+
|
|
470
|
+
if (hasImplicitHelpCommand) {
|
|
471
|
+
if (this._helpCommand === undefined) {
|
|
472
|
+
this.helpCommand(undefined, undefined); // use default name and description
|
|
473
|
+
}
|
|
474
|
+
return this._helpCommand;
|
|
475
|
+
}
|
|
476
|
+
return null;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Add hook for life cycle event.
|
|
481
|
+
*
|
|
482
|
+
* @param {string} event
|
|
483
|
+
* @param {Function} listener
|
|
484
|
+
* @return {Command} `this` command for chaining
|
|
485
|
+
*/
|
|
486
|
+
|
|
487
|
+
hook(event, listener) {
|
|
488
|
+
const allowedValues = ['preSubcommand', 'preAction', 'postAction'];
|
|
489
|
+
if (!allowedValues.includes(event)) {
|
|
490
|
+
throw new Error(`Unexpected value for event passed to hook : '${event}'.
|
|
491
|
+
Expecting one of '${allowedValues.join("', '")}'`);
|
|
492
|
+
}
|
|
493
|
+
if (this._lifeCycleHooks[event]) {
|
|
494
|
+
this._lifeCycleHooks[event].push(listener);
|
|
495
|
+
} else {
|
|
496
|
+
this._lifeCycleHooks[event] = [listener];
|
|
497
|
+
}
|
|
498
|
+
return this;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Register callback to use as replacement for calling process.exit.
|
|
503
|
+
*
|
|
504
|
+
* @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
|
|
505
|
+
* @return {Command} `this` command for chaining
|
|
506
|
+
*/
|
|
507
|
+
|
|
508
|
+
exitOverride(fn) {
|
|
509
|
+
if (fn) {
|
|
510
|
+
this._exitCallback = fn;
|
|
511
|
+
} else {
|
|
512
|
+
this._exitCallback = (err) => {
|
|
513
|
+
if (err.code !== 'commander.executeSubCommandAsync') {
|
|
514
|
+
throw err;
|
|
515
|
+
} else {
|
|
516
|
+
// Async callback from spawn events, not useful to throw.
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
return this;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Call process.exit, and _exitCallback if defined.
|
|
525
|
+
*
|
|
526
|
+
* @param {number} exitCode exit code for using with process.exit
|
|
527
|
+
* @param {string} code an id string representing the error
|
|
528
|
+
* @param {string} message human-readable description of the error
|
|
529
|
+
* @return never
|
|
530
|
+
* @private
|
|
531
|
+
*/
|
|
532
|
+
|
|
533
|
+
_exit(exitCode, code, message) {
|
|
534
|
+
if (this._exitCallback) {
|
|
535
|
+
this._exitCallback(new CommanderError(exitCode, code, message));
|
|
536
|
+
// Expecting this line is not reached.
|
|
537
|
+
}
|
|
538
|
+
process.exit(exitCode);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Register callback `fn` for the command.
|
|
543
|
+
*
|
|
544
|
+
* @example
|
|
545
|
+
* program
|
|
546
|
+
* .command('serve')
|
|
547
|
+
* .description('start service')
|
|
548
|
+
* .action(function() {
|
|
549
|
+
* // do work here
|
|
550
|
+
* });
|
|
551
|
+
*
|
|
552
|
+
* @param {Function} fn
|
|
553
|
+
* @return {Command} `this` command for chaining
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
action(fn) {
|
|
557
|
+
const listener = (args) => {
|
|
558
|
+
// The .action callback takes an extra parameter which is the command or options.
|
|
559
|
+
const expectedArgsCount = this.registeredArguments.length;
|
|
560
|
+
const actionArgs = args.slice(0, expectedArgsCount);
|
|
561
|
+
if (this._storeOptionsAsProperties) {
|
|
562
|
+
actionArgs[expectedArgsCount] = this; // backwards compatible "options"
|
|
563
|
+
} else {
|
|
564
|
+
actionArgs[expectedArgsCount] = this.opts();
|
|
565
|
+
}
|
|
566
|
+
actionArgs.push(this);
|
|
567
|
+
|
|
568
|
+
return fn.apply(this, actionArgs);
|
|
569
|
+
};
|
|
570
|
+
this._actionHandler = listener;
|
|
571
|
+
return this;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Factory routine to create a new unattached option.
|
|
576
|
+
*
|
|
577
|
+
* See .option() for creating an attached option, which uses this routine to
|
|
578
|
+
* create the option. You can override createOption to return a custom option.
|
|
579
|
+
*
|
|
580
|
+
* @param {string} flags
|
|
581
|
+
* @param {string} [description]
|
|
582
|
+
* @return {Option} new option
|
|
583
|
+
*/
|
|
584
|
+
|
|
585
|
+
createOption(flags, description) {
|
|
586
|
+
return new Option(flags, description);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Wrap parseArgs to catch 'commander.invalidArgument'.
|
|
591
|
+
*
|
|
592
|
+
* @param {(Option | Argument)} target
|
|
593
|
+
* @param {string} value
|
|
594
|
+
* @param {*} previous
|
|
595
|
+
* @param {string} invalidArgumentMessage
|
|
596
|
+
* @private
|
|
597
|
+
*/
|
|
598
|
+
|
|
599
|
+
_callParseArg(target, value, previous, invalidArgumentMessage) {
|
|
600
|
+
try {
|
|
601
|
+
return target.parseArg(value, previous);
|
|
602
|
+
} catch (err) {
|
|
603
|
+
if (err.code === 'commander.invalidArgument') {
|
|
604
|
+
const message = `${invalidArgumentMessage} ${err.message}`;
|
|
605
|
+
this.error(message, { exitCode: err.exitCode, code: err.code });
|
|
606
|
+
}
|
|
607
|
+
throw err;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Check for option flag conflicts.
|
|
613
|
+
* Register option if no conflicts found, or throw on conflict.
|
|
614
|
+
*
|
|
615
|
+
* @param {Option} option
|
|
616
|
+
* @private
|
|
617
|
+
*/
|
|
618
|
+
|
|
619
|
+
_registerOption(option) {
|
|
620
|
+
const matchingOption =
|
|
621
|
+
(option.short && this._findOption(option.short)) ||
|
|
622
|
+
(option.long && this._findOption(option.long));
|
|
623
|
+
if (matchingOption) {
|
|
624
|
+
const matchingFlag =
|
|
625
|
+
option.long && this._findOption(option.long)
|
|
626
|
+
? option.long
|
|
627
|
+
: option.short;
|
|
628
|
+
throw new Error(`Cannot add option '${option.flags}'${this._name && ` to command '${this._name}'`} due to conflicting flag '${matchingFlag}'
|
|
629
|
+
- already used by option '${matchingOption.flags}'`);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
this._initOptionGroup(option);
|
|
633
|
+
this.options.push(option);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Check for command name and alias conflicts with existing commands.
|
|
638
|
+
* Register command if no conflicts found, or throw on conflict.
|
|
639
|
+
*
|
|
640
|
+
* @param {Command} command
|
|
641
|
+
* @private
|
|
642
|
+
*/
|
|
643
|
+
|
|
644
|
+
_registerCommand(command) {
|
|
645
|
+
const knownBy = (cmd) => {
|
|
646
|
+
return [cmd.name()].concat(cmd.aliases());
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
const alreadyUsed = knownBy(command).find((name) =>
|
|
650
|
+
this._findCommand(name),
|
|
651
|
+
);
|
|
652
|
+
if (alreadyUsed) {
|
|
653
|
+
const existingCmd = knownBy(this._findCommand(alreadyUsed)).join('|');
|
|
654
|
+
const newCmd = knownBy(command).join('|');
|
|
655
|
+
throw new Error(
|
|
656
|
+
`cannot add command '${newCmd}' as already have command '${existingCmd}'`,
|
|
657
|
+
);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
this._initCommandGroup(command);
|
|
661
|
+
this.commands.push(command);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Add an option.
|
|
666
|
+
*
|
|
667
|
+
* @param {Option} option
|
|
668
|
+
* @return {Command} `this` command for chaining
|
|
669
|
+
*/
|
|
670
|
+
addOption(option) {
|
|
671
|
+
this._registerOption(option);
|
|
672
|
+
|
|
673
|
+
const oname = option.name();
|
|
674
|
+
const name = option.attributeName();
|
|
675
|
+
|
|
676
|
+
// store default value
|
|
677
|
+
if (option.negate) {
|
|
678
|
+
// --no-foo is special and defaults foo to true, unless a --foo option is already defined
|
|
679
|
+
const positiveLongFlag = option.long.replace(/^--no-/, '--');
|
|
680
|
+
if (!this._findOption(positiveLongFlag)) {
|
|
681
|
+
this.setOptionValueWithSource(
|
|
682
|
+
name,
|
|
683
|
+
option.defaultValue === undefined ? true : option.defaultValue,
|
|
684
|
+
'default',
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
} else if (option.defaultValue !== undefined) {
|
|
688
|
+
this.setOptionValueWithSource(name, option.defaultValue, 'default');
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// handler for cli and env supplied values
|
|
692
|
+
const handleOptionValue = (val, invalidValueMessage, valueSource) => {
|
|
693
|
+
// val is null for optional option used without an optional-argument.
|
|
694
|
+
// val is undefined for boolean and negated option.
|
|
695
|
+
if (val == null && option.presetArg !== undefined) {
|
|
696
|
+
val = option.presetArg;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
// custom processing
|
|
700
|
+
const oldValue = this.getOptionValue(name);
|
|
701
|
+
if (val !== null && option.parseArg) {
|
|
702
|
+
val = this._callParseArg(option, val, oldValue, invalidValueMessage);
|
|
703
|
+
} else if (val !== null && option.variadic) {
|
|
704
|
+
val = option._collectValue(val, oldValue);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// Fill-in appropriate missing values. Long winded but easy to follow.
|
|
708
|
+
if (val == null) {
|
|
709
|
+
if (option.negate) {
|
|
710
|
+
val = false;
|
|
711
|
+
} else if (option.isBoolean() || option.optional) {
|
|
712
|
+
val = true;
|
|
713
|
+
} else {
|
|
714
|
+
val = ''; // not normal, parseArg might have failed or be a mock function for testing
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
this.setOptionValueWithSource(name, val, valueSource);
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
this.on('option:' + oname, (val) => {
|
|
721
|
+
const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
|
|
722
|
+
handleOptionValue(val, invalidValueMessage, 'cli');
|
|
723
|
+
});
|
|
724
|
+
|
|
725
|
+
if (option.envVar) {
|
|
726
|
+
this.on('optionEnv:' + oname, (val) => {
|
|
727
|
+
const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`;
|
|
728
|
+
handleOptionValue(val, invalidValueMessage, 'env');
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
return this;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Internal implementation shared by .option() and .requiredOption()
|
|
737
|
+
*
|
|
738
|
+
* @return {Command} `this` command for chaining
|
|
739
|
+
* @private
|
|
740
|
+
*/
|
|
741
|
+
_optionEx(config, flags, description, fn, defaultValue) {
|
|
742
|
+
if (typeof flags === 'object' && flags instanceof Option) {
|
|
743
|
+
throw new Error(
|
|
744
|
+
'To add an Option object use addOption() instead of option() or requiredOption()',
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
const option = this.createOption(flags, description);
|
|
748
|
+
option.makeOptionMandatory(!!config.mandatory);
|
|
749
|
+
if (typeof fn === 'function') {
|
|
750
|
+
option.default(defaultValue).argParser(fn);
|
|
751
|
+
} else if (fn instanceof RegExp) {
|
|
752
|
+
// deprecated
|
|
753
|
+
const regex = fn;
|
|
754
|
+
fn = (val, def) => {
|
|
755
|
+
const m = regex.exec(val);
|
|
756
|
+
return m ? m[0] : def;
|
|
757
|
+
};
|
|
758
|
+
option.default(defaultValue).argParser(fn);
|
|
759
|
+
} else {
|
|
760
|
+
option.default(fn);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
return this.addOption(option);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both.
|
|
768
|
+
*
|
|
769
|
+
* The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required
|
|
770
|
+
* option-argument is indicated by `<>` and an optional option-argument by `[]`.
|
|
771
|
+
*
|
|
772
|
+
* See the README for more details, and see also addOption() and requiredOption().
|
|
773
|
+
*
|
|
774
|
+
* @example
|
|
775
|
+
* program
|
|
776
|
+
* .option('-p, --pepper', 'add pepper')
|
|
777
|
+
* .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument
|
|
778
|
+
* .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
|
|
779
|
+
* .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
|
|
780
|
+
*
|
|
781
|
+
* @param {string} flags
|
|
782
|
+
* @param {string} [description]
|
|
783
|
+
* @param {(Function|*)} [parseArg] - custom option processing function or default value
|
|
784
|
+
* @param {*} [defaultValue]
|
|
785
|
+
* @return {Command} `this` command for chaining
|
|
786
|
+
*/
|
|
787
|
+
|
|
788
|
+
option(flags, description, parseArg, defaultValue) {
|
|
789
|
+
return this._optionEx({}, flags, description, parseArg, defaultValue);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Add a required option which must have a value after parsing. This usually means
|
|
794
|
+
* the option must be specified on the command line. (Otherwise the same as .option().)
|
|
795
|
+
*
|
|
796
|
+
* The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
|
|
797
|
+
*
|
|
798
|
+
* @param {string} flags
|
|
799
|
+
* @param {string} [description]
|
|
800
|
+
* @param {(Function|*)} [parseArg] - custom option processing function or default value
|
|
801
|
+
* @param {*} [defaultValue]
|
|
802
|
+
* @return {Command} `this` command for chaining
|
|
803
|
+
*/
|
|
804
|
+
|
|
805
|
+
requiredOption(flags, description, parseArg, defaultValue) {
|
|
806
|
+
return this._optionEx(
|
|
807
|
+
{ mandatory: true },
|
|
808
|
+
flags,
|
|
809
|
+
description,
|
|
810
|
+
parseArg,
|
|
811
|
+
defaultValue,
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Alter parsing of short flags with optional values.
|
|
817
|
+
*
|
|
818
|
+
* @example
|
|
819
|
+
* // for `.option('-f,--flag [value]'):
|
|
820
|
+
* program.combineFlagAndOptionalValue(true); // `-f80` is treated like `--flag=80`, this is the default behaviour
|
|
821
|
+
* program.combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
|
|
822
|
+
*
|
|
823
|
+
* @param {boolean} [combine] - if `true` or omitted, an optional value can be specified directly after the flag.
|
|
824
|
+
* @return {Command} `this` command for chaining
|
|
825
|
+
*/
|
|
826
|
+
combineFlagAndOptionalValue(combine = true) {
|
|
827
|
+
this._combineFlagAndOptionalValue = !!combine;
|
|
828
|
+
return this;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Allow unknown options on the command line.
|
|
833
|
+
*
|
|
834
|
+
* @param {boolean} [allowUnknown] - if `true` or omitted, no error will be thrown for unknown options.
|
|
835
|
+
* @return {Command} `this` command for chaining
|
|
836
|
+
*/
|
|
837
|
+
allowUnknownOption(allowUnknown = true) {
|
|
838
|
+
this._allowUnknownOption = !!allowUnknown;
|
|
839
|
+
return this;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
|
|
844
|
+
*
|
|
845
|
+
* @param {boolean} [allowExcess] - if `true` or omitted, no error will be thrown for excess arguments.
|
|
846
|
+
* @return {Command} `this` command for chaining
|
|
847
|
+
*/
|
|
848
|
+
allowExcessArguments(allowExcess = true) {
|
|
849
|
+
this._allowExcessArguments = !!allowExcess;
|
|
850
|
+
return this;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Enable positional options. Positional means global options are specified before subcommands which lets
|
|
855
|
+
* subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
|
|
856
|
+
* The default behaviour is non-positional and global options may appear anywhere on the command line.
|
|
857
|
+
*
|
|
858
|
+
* @param {boolean} [positional]
|
|
859
|
+
* @return {Command} `this` command for chaining
|
|
860
|
+
*/
|
|
861
|
+
enablePositionalOptions(positional = true) {
|
|
862
|
+
this._enablePositionalOptions = !!positional;
|
|
863
|
+
return this;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Pass through options that come after command-arguments rather than treat them as command-options,
|
|
868
|
+
* so actual command-options come before command-arguments. Turning this on for a subcommand requires
|
|
869
|
+
* positional options to have been enabled on the program (parent commands).
|
|
870
|
+
* The default behaviour is non-positional and options may appear before or after command-arguments.
|
|
871
|
+
*
|
|
872
|
+
* @param {boolean} [passThrough] for unknown options.
|
|
873
|
+
* @return {Command} `this` command for chaining
|
|
874
|
+
*/
|
|
875
|
+
passThroughOptions(passThrough = true) {
|
|
876
|
+
this._passThroughOptions = !!passThrough;
|
|
877
|
+
this._checkForBrokenPassThrough();
|
|
878
|
+
return this;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* @private
|
|
883
|
+
*/
|
|
884
|
+
|
|
885
|
+
_checkForBrokenPassThrough() {
|
|
886
|
+
if (
|
|
887
|
+
this.parent &&
|
|
888
|
+
this._passThroughOptions &&
|
|
889
|
+
!this.parent._enablePositionalOptions
|
|
890
|
+
) {
|
|
891
|
+
throw new Error(
|
|
892
|
+
`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`,
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Whether to store option values as properties on command object,
|
|
899
|
+
* or store separately (specify false). In both cases the option values can be accessed using .opts().
|
|
900
|
+
*
|
|
901
|
+
* @param {boolean} [storeAsProperties=true]
|
|
902
|
+
* @return {Command} `this` command for chaining
|
|
903
|
+
*/
|
|
904
|
+
|
|
905
|
+
storeOptionsAsProperties(storeAsProperties = true) {
|
|
906
|
+
if (this.options.length) {
|
|
907
|
+
throw new Error('call .storeOptionsAsProperties() before adding options');
|
|
908
|
+
}
|
|
909
|
+
if (Object.keys(this._optionValues).length) {
|
|
910
|
+
throw new Error(
|
|
911
|
+
'call .storeOptionsAsProperties() before setting option values',
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
this._storeOptionsAsProperties = !!storeAsProperties;
|
|
915
|
+
return this;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Retrieve option value.
|
|
920
|
+
*
|
|
921
|
+
* @param {string} key
|
|
922
|
+
* @return {object} value
|
|
923
|
+
*/
|
|
924
|
+
|
|
925
|
+
getOptionValue(key) {
|
|
926
|
+
if (this._storeOptionsAsProperties) {
|
|
927
|
+
return this[key];
|
|
928
|
+
}
|
|
929
|
+
return this._optionValues[key];
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Store option value.
|
|
934
|
+
*
|
|
935
|
+
* @param {string} key
|
|
936
|
+
* @param {object} value
|
|
937
|
+
* @return {Command} `this` command for chaining
|
|
938
|
+
*/
|
|
939
|
+
|
|
940
|
+
setOptionValue(key, value) {
|
|
941
|
+
return this.setOptionValueWithSource(key, value, undefined);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Store option value and where the value came from.
|
|
946
|
+
*
|
|
947
|
+
* @param {string} key
|
|
948
|
+
* @param {object} value
|
|
949
|
+
* @param {string} source - expected values are default/config/env/cli/implied
|
|
950
|
+
* @return {Command} `this` command for chaining
|
|
951
|
+
*/
|
|
952
|
+
|
|
953
|
+
setOptionValueWithSource(key, value, source) {
|
|
954
|
+
if (this._storeOptionsAsProperties) {
|
|
955
|
+
this[key] = value;
|
|
956
|
+
} else {
|
|
957
|
+
this._optionValues[key] = value;
|
|
958
|
+
}
|
|
959
|
+
this._optionValueSources[key] = source;
|
|
960
|
+
return this;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Get source of option value.
|
|
965
|
+
* Expected values are default | config | env | cli | implied
|
|
966
|
+
*
|
|
967
|
+
* @param {string} key
|
|
968
|
+
* @return {string}
|
|
969
|
+
*/
|
|
970
|
+
|
|
971
|
+
getOptionValueSource(key) {
|
|
972
|
+
return this._optionValueSources[key];
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Get source of option value. See also .optsWithGlobals().
|
|
977
|
+
* Expected values are default | config | env | cli | implied
|
|
978
|
+
*
|
|
979
|
+
* @param {string} key
|
|
980
|
+
* @return {string}
|
|
981
|
+
*/
|
|
982
|
+
|
|
983
|
+
getOptionValueSourceWithGlobals(key) {
|
|
984
|
+
// global overwrites local, like optsWithGlobals
|
|
985
|
+
let source;
|
|
986
|
+
this._getCommandAndAncestors().forEach((cmd) => {
|
|
987
|
+
if (cmd.getOptionValueSource(key) !== undefined) {
|
|
988
|
+
source = cmd.getOptionValueSource(key);
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
return source;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Get user arguments from implied or explicit arguments.
|
|
996
|
+
* Side-effects: set _scriptPath if args included script. Used for default program name, and subcommand searches.
|
|
997
|
+
*
|
|
998
|
+
* @private
|
|
999
|
+
*/
|
|
1000
|
+
|
|
1001
|
+
_prepareUserArgs(argv, parseOptions) {
|
|
1002
|
+
if (argv !== undefined && !Array.isArray(argv)) {
|
|
1003
|
+
throw new Error('first parameter to parse must be array or undefined');
|
|
1004
|
+
}
|
|
1005
|
+
parseOptions = parseOptions || {};
|
|
1006
|
+
|
|
1007
|
+
// auto-detect argument conventions if nothing supplied
|
|
1008
|
+
if (argv === undefined && parseOptions.from === undefined) {
|
|
1009
|
+
if (process.versions?.electron) {
|
|
1010
|
+
parseOptions.from = 'electron';
|
|
1011
|
+
}
|
|
1012
|
+
// check node specific options for scenarios where user CLI args follow executable without scriptname
|
|
1013
|
+
const execArgv = process.execArgv ?? [];
|
|
1014
|
+
if (
|
|
1015
|
+
execArgv.includes('-e') ||
|
|
1016
|
+
execArgv.includes('--eval') ||
|
|
1017
|
+
execArgv.includes('-p') ||
|
|
1018
|
+
execArgv.includes('--print')
|
|
1019
|
+
) {
|
|
1020
|
+
parseOptions.from = 'eval'; // internal usage, not documented
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// default to using process.argv
|
|
1025
|
+
if (argv === undefined) {
|
|
1026
|
+
argv = process.argv;
|
|
1027
|
+
}
|
|
1028
|
+
this.rawArgs = argv.slice();
|
|
1029
|
+
|
|
1030
|
+
// extract the user args and scriptPath
|
|
1031
|
+
let userArgs;
|
|
1032
|
+
switch (parseOptions.from) {
|
|
1033
|
+
case undefined:
|
|
1034
|
+
case 'node':
|
|
1035
|
+
this._scriptPath = argv[1];
|
|
1036
|
+
userArgs = argv.slice(2);
|
|
1037
|
+
break;
|
|
1038
|
+
case 'electron':
|
|
1039
|
+
// @ts-ignore: because defaultApp is an unknown property
|
|
1040
|
+
if (process.defaultApp) {
|
|
1041
|
+
this._scriptPath = argv[1];
|
|
1042
|
+
userArgs = argv.slice(2);
|
|
1043
|
+
} else {
|
|
1044
|
+
userArgs = argv.slice(1);
|
|
1045
|
+
}
|
|
1046
|
+
break;
|
|
1047
|
+
case 'user':
|
|
1048
|
+
userArgs = argv.slice(0);
|
|
1049
|
+
break;
|
|
1050
|
+
case 'eval':
|
|
1051
|
+
userArgs = argv.slice(1);
|
|
1052
|
+
break;
|
|
1053
|
+
default:
|
|
1054
|
+
throw new Error(
|
|
1055
|
+
`unexpected parse option { from: '${parseOptions.from}' }`,
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
// Find default name for program from arguments.
|
|
1060
|
+
if (!this._name && this._scriptPath)
|
|
1061
|
+
this.nameFromFilename(this._scriptPath);
|
|
1062
|
+
this._name = this._name || 'program';
|
|
1063
|
+
|
|
1064
|
+
return userArgs;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Parse `argv`, setting options and invoking commands when defined.
|
|
1069
|
+
*
|
|
1070
|
+
* Use parseAsync instead of parse if any of your action handlers are async.
|
|
1071
|
+
*
|
|
1072
|
+
* Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
|
|
1073
|
+
*
|
|
1074
|
+
* Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
|
|
1075
|
+
* - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
|
|
1076
|
+
* - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
|
|
1077
|
+
* - `'user'`: just user arguments
|
|
1078
|
+
*
|
|
1079
|
+
* @example
|
|
1080
|
+
* program.parse(); // parse process.argv and auto-detect electron and special node flags
|
|
1081
|
+
* program.parse(process.argv); // assume argv[0] is app and argv[1] is script
|
|
1082
|
+
* program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
|
|
1083
|
+
*
|
|
1084
|
+
* @param {string[]} [argv] - optional, defaults to process.argv
|
|
1085
|
+
* @param {object} [parseOptions] - optionally specify style of options with from: node/user/electron
|
|
1086
|
+
* @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
|
|
1087
|
+
* @return {Command} `this` command for chaining
|
|
1088
|
+
*/
|
|
1089
|
+
|
|
1090
|
+
parse(argv, parseOptions) {
|
|
1091
|
+
this._prepareForParse();
|
|
1092
|
+
const userArgs = this._prepareUserArgs(argv, parseOptions);
|
|
1093
|
+
this._parseCommand([], userArgs);
|
|
1094
|
+
|
|
1095
|
+
return this;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Parse `argv`, setting options and invoking commands when defined.
|
|
1100
|
+
*
|
|
1101
|
+
* Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
|
|
1102
|
+
*
|
|
1103
|
+
* Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
|
|
1104
|
+
* - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
|
|
1105
|
+
* - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
|
|
1106
|
+
* - `'user'`: just user arguments
|
|
1107
|
+
*
|
|
1108
|
+
* @example
|
|
1109
|
+
* await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags
|
|
1110
|
+
* await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script
|
|
1111
|
+
* await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
|
|
1112
|
+
*
|
|
1113
|
+
* @param {string[]} [argv]
|
|
1114
|
+
* @param {object} [parseOptions]
|
|
1115
|
+
* @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
|
|
1116
|
+
* @return {Promise}
|
|
1117
|
+
*/
|
|
1118
|
+
|
|
1119
|
+
async parseAsync(argv, parseOptions) {
|
|
1120
|
+
this._prepareForParse();
|
|
1121
|
+
const userArgs = this._prepareUserArgs(argv, parseOptions);
|
|
1122
|
+
await this._parseCommand([], userArgs);
|
|
1123
|
+
|
|
1124
|
+
return this;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
_prepareForParse() {
|
|
1128
|
+
if (this._savedState === null) {
|
|
1129
|
+
this.saveStateBeforeParse();
|
|
1130
|
+
} else {
|
|
1131
|
+
this.restoreStateBeforeParse();
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Called the first time parse is called to save state and allow a restore before subsequent calls to parse.
|
|
1137
|
+
* Not usually called directly, but available for subclasses to save their custom state.
|
|
1138
|
+
*
|
|
1139
|
+
* This is called in a lazy way. Only commands used in parsing chain will have state saved.
|
|
1140
|
+
*/
|
|
1141
|
+
saveStateBeforeParse() {
|
|
1142
|
+
this._savedState = {
|
|
1143
|
+
// name is stable if supplied by author, but may be unspecified for root command and deduced during parsing
|
|
1144
|
+
_name: this._name,
|
|
1145
|
+
// option values before parse have default values (including false for negated options)
|
|
1146
|
+
// shallow clones
|
|
1147
|
+
_optionValues: { ...this._optionValues },
|
|
1148
|
+
_optionValueSources: { ...this._optionValueSources },
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Restore state before parse for calls after the first.
|
|
1154
|
+
* Not usually called directly, but available for subclasses to save their custom state.
|
|
1155
|
+
*
|
|
1156
|
+
* This is called in a lazy way. Only commands used in parsing chain will have state restored.
|
|
1157
|
+
*/
|
|
1158
|
+
restoreStateBeforeParse() {
|
|
1159
|
+
if (this._storeOptionsAsProperties)
|
|
1160
|
+
throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
1161
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);
|
|
1162
|
+
|
|
1163
|
+
// clear state from _prepareUserArgs
|
|
1164
|
+
this._name = this._savedState._name;
|
|
1165
|
+
this._scriptPath = null;
|
|
1166
|
+
this.rawArgs = [];
|
|
1167
|
+
// clear state from setOptionValueWithSource
|
|
1168
|
+
this._optionValues = { ...this._savedState._optionValues };
|
|
1169
|
+
this._optionValueSources = { ...this._savedState._optionValueSources };
|
|
1170
|
+
// clear state from _parseCommand
|
|
1171
|
+
this.args = [];
|
|
1172
|
+
// clear state from _processArguments
|
|
1173
|
+
this.processedArgs = [];
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Throw if expected executable is missing. Add lots of help for author.
|
|
1178
|
+
*
|
|
1179
|
+
* @param {string} executableFile
|
|
1180
|
+
* @param {string} executableDir
|
|
1181
|
+
* @param {string} subcommandName
|
|
1182
|
+
*/
|
|
1183
|
+
_checkForMissingExecutable(executableFile, executableDir, subcommandName) {
|
|
1184
|
+
if (fs.existsSync(executableFile)) return;
|
|
1185
|
+
|
|
1186
|
+
const executableDirMessage = executableDir
|
|
1187
|
+
? `searched for local subcommand relative to directory '${executableDir}'`
|
|
1188
|
+
: 'no directory for search for local subcommand, use .executableDir() to supply a custom directory';
|
|
1189
|
+
const executableMissing = `'${executableFile}' does not exist
|
|
1190
|
+
- if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
1191
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
1192
|
+
- ${executableDirMessage}`;
|
|
1193
|
+
throw new Error(executableMissing);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Execute a sub-command executable.
|
|
1198
|
+
*
|
|
1199
|
+
* @private
|
|
1200
|
+
*/
|
|
1201
|
+
|
|
1202
|
+
_executeSubCommand(subcommand, args) {
|
|
1203
|
+
args = args.slice();
|
|
1204
|
+
let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
|
|
1205
|
+
const sourceExt = ['.js', '.ts', '.tsx', '.mjs', '.cjs'];
|
|
1206
|
+
|
|
1207
|
+
function findFile(baseDir, baseName) {
|
|
1208
|
+
// Look for specified file
|
|
1209
|
+
const localBin = path.resolve(baseDir, baseName);
|
|
1210
|
+
if (fs.existsSync(localBin)) return localBin;
|
|
1211
|
+
|
|
1212
|
+
// Stop looking if candidate already has an expected extension.
|
|
1213
|
+
if (sourceExt.includes(path.extname(baseName))) return undefined;
|
|
1214
|
+
|
|
1215
|
+
// Try all the extensions.
|
|
1216
|
+
const foundExt = sourceExt.find((ext) =>
|
|
1217
|
+
fs.existsSync(`${localBin}${ext}`),
|
|
1218
|
+
);
|
|
1219
|
+
if (foundExt) return `${localBin}${foundExt}`;
|
|
1220
|
+
|
|
1221
|
+
return undefined;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
// Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
|
|
1225
|
+
this._checkForMissingMandatoryOptions();
|
|
1226
|
+
this._checkForConflictingOptions();
|
|
1227
|
+
|
|
1228
|
+
// executableFile and executableDir might be full path, or just a name
|
|
1229
|
+
let executableFile =
|
|
1230
|
+
subcommand._executableFile || `${this._name}-${subcommand._name}`;
|
|
1231
|
+
let executableDir = this._executableDir || '';
|
|
1232
|
+
if (this._scriptPath) {
|
|
1233
|
+
let resolvedScriptPath; // resolve possible symlink for installed npm binary
|
|
1234
|
+
try {
|
|
1235
|
+
resolvedScriptPath = fs.realpathSync(this._scriptPath);
|
|
1236
|
+
} catch {
|
|
1237
|
+
resolvedScriptPath = this._scriptPath;
|
|
1238
|
+
}
|
|
1239
|
+
executableDir = path.resolve(
|
|
1240
|
+
path.dirname(resolvedScriptPath),
|
|
1241
|
+
executableDir,
|
|
1242
|
+
);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
// Look for a local file in preference to a command in PATH.
|
|
1246
|
+
if (executableDir) {
|
|
1247
|
+
let localFile = findFile(executableDir, executableFile);
|
|
1248
|
+
|
|
1249
|
+
// Legacy search using prefix of script name instead of command name
|
|
1250
|
+
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1251
|
+
const legacyName = path.basename(
|
|
1252
|
+
this._scriptPath,
|
|
1253
|
+
path.extname(this._scriptPath),
|
|
1254
|
+
);
|
|
1255
|
+
if (legacyName !== this._name) {
|
|
1256
|
+
localFile = findFile(
|
|
1257
|
+
executableDir,
|
|
1258
|
+
`${legacyName}-${subcommand._name}`,
|
|
1259
|
+
);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
executableFile = localFile || executableFile;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
launchWithNode = sourceExt.includes(path.extname(executableFile));
|
|
1266
|
+
|
|
1267
|
+
let proc;
|
|
1268
|
+
if (process.platform !== 'win32') {
|
|
1269
|
+
if (launchWithNode) {
|
|
1270
|
+
args.unshift(executableFile);
|
|
1271
|
+
// add executable arguments to spawn
|
|
1272
|
+
args = incrementNodeInspectorPort(process.execArgv).concat(args);
|
|
1273
|
+
|
|
1274
|
+
proc = childProcess.spawn(process.argv[0], args, { stdio: 'inherit' });
|
|
1275
|
+
} else {
|
|
1276
|
+
proc = childProcess.spawn(executableFile, args, { stdio: 'inherit' });
|
|
1277
|
+
}
|
|
1278
|
+
} else {
|
|
1279
|
+
this._checkForMissingExecutable(
|
|
1280
|
+
executableFile,
|
|
1281
|
+
executableDir,
|
|
1282
|
+
subcommand._name,
|
|
1283
|
+
);
|
|
1284
|
+
args.unshift(executableFile);
|
|
1285
|
+
// add executable arguments to spawn
|
|
1286
|
+
args = incrementNodeInspectorPort(process.execArgv).concat(args);
|
|
1287
|
+
proc = childProcess.spawn(process.execPath, args, { stdio: 'inherit' });
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
if (!proc.killed) {
|
|
1291
|
+
// testing mainly to avoid leak warnings during unit tests with mocked spawn
|
|
1292
|
+
const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP'];
|
|
1293
|
+
signals.forEach((signal) => {
|
|
1294
|
+
process.on(signal, () => {
|
|
1295
|
+
if (proc.killed === false && proc.exitCode === null) {
|
|
1296
|
+
// @ts-ignore because signals not typed to known strings
|
|
1297
|
+
proc.kill(signal);
|
|
1298
|
+
}
|
|
1299
|
+
});
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
// By default terminate process when spawned process terminates.
|
|
1304
|
+
const exitCallback = this._exitCallback;
|
|
1305
|
+
proc.on('close', (code) => {
|
|
1306
|
+
code = code ?? 1; // code is null if spawned process terminated due to a signal
|
|
1307
|
+
if (!exitCallback) {
|
|
1308
|
+
process.exit(code);
|
|
1309
|
+
} else {
|
|
1310
|
+
exitCallback(
|
|
1311
|
+
new CommanderError(
|
|
1312
|
+
code,
|
|
1313
|
+
'commander.executeSubCommandAsync',
|
|
1314
|
+
'(close)',
|
|
1315
|
+
),
|
|
1316
|
+
);
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
proc.on('error', (err) => {
|
|
1320
|
+
// @ts-ignore: because err.code is an unknown property
|
|
1321
|
+
if (err.code === 'ENOENT') {
|
|
1322
|
+
this._checkForMissingExecutable(
|
|
1323
|
+
executableFile,
|
|
1324
|
+
executableDir,
|
|
1325
|
+
subcommand._name,
|
|
1326
|
+
);
|
|
1327
|
+
// @ts-ignore: because err.code is an unknown property
|
|
1328
|
+
} else if (err.code === 'EACCES') {
|
|
1329
|
+
throw new Error(`'${executableFile}' not executable`);
|
|
1330
|
+
}
|
|
1331
|
+
if (!exitCallback) {
|
|
1332
|
+
process.exit(1);
|
|
1333
|
+
} else {
|
|
1334
|
+
const wrappedError = new CommanderError(
|
|
1335
|
+
1,
|
|
1336
|
+
'commander.executeSubCommandAsync',
|
|
1337
|
+
'(error)',
|
|
1338
|
+
);
|
|
1339
|
+
wrappedError.nestedError = err;
|
|
1340
|
+
exitCallback(wrappedError);
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
|
|
1344
|
+
// Store the reference to the child process
|
|
1345
|
+
this.runningCommand = proc;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* @private
|
|
1350
|
+
*/
|
|
1351
|
+
|
|
1352
|
+
_dispatchSubcommand(commandName, operands, unknown) {
|
|
1353
|
+
const subCommand = this._findCommand(commandName);
|
|
1354
|
+
if (!subCommand) this.help({ error: true });
|
|
1355
|
+
|
|
1356
|
+
subCommand._prepareForParse();
|
|
1357
|
+
let promiseChain;
|
|
1358
|
+
promiseChain = this._chainOrCallSubCommandHook(
|
|
1359
|
+
promiseChain,
|
|
1360
|
+
subCommand,
|
|
1361
|
+
'preSubcommand',
|
|
1362
|
+
);
|
|
1363
|
+
promiseChain = this._chainOrCall(promiseChain, () => {
|
|
1364
|
+
if (subCommand._executableHandler) {
|
|
1365
|
+
this._executeSubCommand(subCommand, operands.concat(unknown));
|
|
1366
|
+
} else {
|
|
1367
|
+
return subCommand._parseCommand(operands, unknown);
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
return promiseChain;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Invoke help directly if possible, or dispatch if necessary.
|
|
1375
|
+
* e.g. help foo
|
|
1376
|
+
*
|
|
1377
|
+
* @private
|
|
1378
|
+
*/
|
|
1379
|
+
|
|
1380
|
+
_dispatchHelpCommand(subcommandName) {
|
|
1381
|
+
if (!subcommandName) {
|
|
1382
|
+
this.help();
|
|
1383
|
+
}
|
|
1384
|
+
const subCommand = this._findCommand(subcommandName);
|
|
1385
|
+
if (subCommand && !subCommand._executableHandler) {
|
|
1386
|
+
subCommand.help();
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
// Fallback to parsing the help flag to invoke the help.
|
|
1390
|
+
return this._dispatchSubcommand(
|
|
1391
|
+
subcommandName,
|
|
1392
|
+
[],
|
|
1393
|
+
[this._getHelpOption()?.long ?? this._getHelpOption()?.short ?? '--help'],
|
|
1394
|
+
);
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Check this.args against expected this.registeredArguments.
|
|
1399
|
+
*
|
|
1400
|
+
* @private
|
|
1401
|
+
*/
|
|
1402
|
+
|
|
1403
|
+
_checkNumberOfArguments() {
|
|
1404
|
+
// too few
|
|
1405
|
+
this.registeredArguments.forEach((arg, i) => {
|
|
1406
|
+
if (arg.required && this.args[i] == null) {
|
|
1407
|
+
this.missingArgument(arg.name());
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
// too many
|
|
1411
|
+
if (
|
|
1412
|
+
this.registeredArguments.length > 0 &&
|
|
1413
|
+
this.registeredArguments[this.registeredArguments.length - 1].variadic
|
|
1414
|
+
) {
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
if (this.args.length > this.registeredArguments.length) {
|
|
1418
|
+
this._excessArguments(this.args);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Process this.args using this.registeredArguments and save as this.processedArgs!
|
|
1424
|
+
*
|
|
1425
|
+
* @private
|
|
1426
|
+
*/
|
|
1427
|
+
|
|
1428
|
+
_processArguments() {
|
|
1429
|
+
const myParseArg = (argument, value, previous) => {
|
|
1430
|
+
// Extra processing for nice error message on parsing failure.
|
|
1431
|
+
let parsedValue = value;
|
|
1432
|
+
if (value !== null && argument.parseArg) {
|
|
1433
|
+
const invalidValueMessage = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'.`;
|
|
1434
|
+
parsedValue = this._callParseArg(
|
|
1435
|
+
argument,
|
|
1436
|
+
value,
|
|
1437
|
+
previous,
|
|
1438
|
+
invalidValueMessage,
|
|
1439
|
+
);
|
|
1440
|
+
}
|
|
1441
|
+
return parsedValue;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
this._checkNumberOfArguments();
|
|
1445
|
+
|
|
1446
|
+
const processedArgs = [];
|
|
1447
|
+
this.registeredArguments.forEach((declaredArg, index) => {
|
|
1448
|
+
let value = declaredArg.defaultValue;
|
|
1449
|
+
if (declaredArg.variadic) {
|
|
1450
|
+
// Collect together remaining arguments for passing together as an array.
|
|
1451
|
+
if (index < this.args.length) {
|
|
1452
|
+
value = this.args.slice(index);
|
|
1453
|
+
if (declaredArg.parseArg) {
|
|
1454
|
+
value = value.reduce((processed, v) => {
|
|
1455
|
+
return myParseArg(declaredArg, v, processed);
|
|
1456
|
+
}, declaredArg.defaultValue);
|
|
1457
|
+
}
|
|
1458
|
+
} else if (value === undefined) {
|
|
1459
|
+
value = [];
|
|
1460
|
+
}
|
|
1461
|
+
} else if (index < this.args.length) {
|
|
1462
|
+
value = this.args[index];
|
|
1463
|
+
if (declaredArg.parseArg) {
|
|
1464
|
+
value = myParseArg(declaredArg, value, declaredArg.defaultValue);
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
processedArgs[index] = value;
|
|
1468
|
+
});
|
|
1469
|
+
this.processedArgs = processedArgs;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Once we have a promise we chain, but call synchronously until then.
|
|
1474
|
+
*
|
|
1475
|
+
* @param {(Promise|undefined)} promise
|
|
1476
|
+
* @param {Function} fn
|
|
1477
|
+
* @return {(Promise|undefined)}
|
|
1478
|
+
* @private
|
|
1479
|
+
*/
|
|
1480
|
+
|
|
1481
|
+
_chainOrCall(promise, fn) {
|
|
1482
|
+
// thenable
|
|
1483
|
+
if (promise?.then && typeof promise.then === 'function') {
|
|
1484
|
+
// already have a promise, chain callback
|
|
1485
|
+
return promise.then(() => fn());
|
|
1486
|
+
}
|
|
1487
|
+
// callback might return a promise
|
|
1488
|
+
return fn();
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
*
|
|
1493
|
+
* @param {(Promise|undefined)} promise
|
|
1494
|
+
* @param {string} event
|
|
1495
|
+
* @return {(Promise|undefined)}
|
|
1496
|
+
* @private
|
|
1497
|
+
*/
|
|
1498
|
+
|
|
1499
|
+
_chainOrCallHooks(promise, event) {
|
|
1500
|
+
let result = promise;
|
|
1501
|
+
const hooks = [];
|
|
1502
|
+
this._getCommandAndAncestors()
|
|
1503
|
+
.reverse()
|
|
1504
|
+
.filter((cmd) => cmd._lifeCycleHooks[event] !== undefined)
|
|
1505
|
+
.forEach((hookedCommand) => {
|
|
1506
|
+
hookedCommand._lifeCycleHooks[event].forEach((callback) => {
|
|
1507
|
+
hooks.push({ hookedCommand, callback });
|
|
1508
|
+
});
|
|
1509
|
+
});
|
|
1510
|
+
if (event === 'postAction') {
|
|
1511
|
+
hooks.reverse();
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
hooks.forEach((hookDetail) => {
|
|
1515
|
+
result = this._chainOrCall(result, () => {
|
|
1516
|
+
return hookDetail.callback(hookDetail.hookedCommand, this);
|
|
1517
|
+
});
|
|
1518
|
+
});
|
|
1519
|
+
return result;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @param {(Promise|undefined)} promise
|
|
1525
|
+
* @param {Command} subCommand
|
|
1526
|
+
* @param {string} event
|
|
1527
|
+
* @return {(Promise|undefined)}
|
|
1528
|
+
* @private
|
|
1529
|
+
*/
|
|
1530
|
+
|
|
1531
|
+
_chainOrCallSubCommandHook(promise, subCommand, event) {
|
|
1532
|
+
let result = promise;
|
|
1533
|
+
if (this._lifeCycleHooks[event] !== undefined) {
|
|
1534
|
+
this._lifeCycleHooks[event].forEach((hook) => {
|
|
1535
|
+
result = this._chainOrCall(result, () => {
|
|
1536
|
+
return hook(this, subCommand);
|
|
1537
|
+
});
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
return result;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Process arguments in context of this command.
|
|
1545
|
+
* Returns action result, in case it is a promise.
|
|
1546
|
+
*
|
|
1547
|
+
* @private
|
|
1548
|
+
*/
|
|
1549
|
+
|
|
1550
|
+
_parseCommand(operands, unknown) {
|
|
1551
|
+
const parsed = this.parseOptions(unknown);
|
|
1552
|
+
this._parseOptionsEnv(); // after cli, so parseArg not called on both cli and env
|
|
1553
|
+
this._parseOptionsImplied();
|
|
1554
|
+
operands = operands.concat(parsed.operands);
|
|
1555
|
+
unknown = parsed.unknown;
|
|
1556
|
+
this.args = operands.concat(unknown);
|
|
1557
|
+
|
|
1558
|
+
if (operands && this._findCommand(operands[0])) {
|
|
1559
|
+
return this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
|
|
1560
|
+
}
|
|
1561
|
+
if (
|
|
1562
|
+
this._getHelpCommand() &&
|
|
1563
|
+
operands[0] === this._getHelpCommand().name()
|
|
1564
|
+
) {
|
|
1565
|
+
return this._dispatchHelpCommand(operands[1]);
|
|
1566
|
+
}
|
|
1567
|
+
if (this._defaultCommandName) {
|
|
1568
|
+
this._outputHelpIfRequested(unknown); // Run the help for default command from parent rather than passing to default command
|
|
1569
|
+
return this._dispatchSubcommand(
|
|
1570
|
+
this._defaultCommandName,
|
|
1571
|
+
operands,
|
|
1572
|
+
unknown,
|
|
1573
|
+
);
|
|
1574
|
+
}
|
|
1575
|
+
if (
|
|
1576
|
+
this.commands.length &&
|
|
1577
|
+
this.args.length === 0 &&
|
|
1578
|
+
!this._actionHandler &&
|
|
1579
|
+
!this._defaultCommandName
|
|
1580
|
+
) {
|
|
1581
|
+
// probably missing subcommand and no handler, user needs help (and exit)
|
|
1582
|
+
this.help({ error: true });
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
this._outputHelpIfRequested(parsed.unknown);
|
|
1586
|
+
this._checkForMissingMandatoryOptions();
|
|
1587
|
+
this._checkForConflictingOptions();
|
|
1588
|
+
|
|
1589
|
+
// We do not always call this check to avoid masking a "better" error, like unknown command.
|
|
1590
|
+
const checkForUnknownOptions = () => {
|
|
1591
|
+
if (parsed.unknown.length > 0) {
|
|
1592
|
+
this.unknownOption(parsed.unknown[0]);
|
|
1593
|
+
}
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
const commandEvent = `command:${this.name()}`;
|
|
1597
|
+
if (this._actionHandler) {
|
|
1598
|
+
checkForUnknownOptions();
|
|
1599
|
+
this._processArguments();
|
|
1600
|
+
|
|
1601
|
+
let promiseChain;
|
|
1602
|
+
promiseChain = this._chainOrCallHooks(promiseChain, 'preAction');
|
|
1603
|
+
promiseChain = this._chainOrCall(promiseChain, () =>
|
|
1604
|
+
this._actionHandler(this.processedArgs),
|
|
1605
|
+
);
|
|
1606
|
+
if (this.parent) {
|
|
1607
|
+
promiseChain = this._chainOrCall(promiseChain, () => {
|
|
1608
|
+
this.parent.emit(commandEvent, operands, unknown); // legacy
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
promiseChain = this._chainOrCallHooks(promiseChain, 'postAction');
|
|
1612
|
+
return promiseChain;
|
|
1613
|
+
}
|
|
1614
|
+
if (this.parent?.listenerCount(commandEvent)) {
|
|
1615
|
+
checkForUnknownOptions();
|
|
1616
|
+
this._processArguments();
|
|
1617
|
+
this.parent.emit(commandEvent, operands, unknown); // legacy
|
|
1618
|
+
} else if (operands.length) {
|
|
1619
|
+
if (this._findCommand('*')) {
|
|
1620
|
+
// legacy default command
|
|
1621
|
+
return this._dispatchSubcommand('*', operands, unknown);
|
|
1622
|
+
}
|
|
1623
|
+
if (this.listenerCount('command:*')) {
|
|
1624
|
+
// skip option check, emit event for possible misspelling suggestion
|
|
1625
|
+
this.emit('command:*', operands, unknown);
|
|
1626
|
+
} else if (this.commands.length) {
|
|
1627
|
+
this.unknownCommand();
|
|
1628
|
+
} else {
|
|
1629
|
+
checkForUnknownOptions();
|
|
1630
|
+
this._processArguments();
|
|
1631
|
+
}
|
|
1632
|
+
} else if (this.commands.length) {
|
|
1633
|
+
checkForUnknownOptions();
|
|
1634
|
+
// This command has subcommands and nothing hooked up at this level, so display help (and exit).
|
|
1635
|
+
this.help({ error: true });
|
|
1636
|
+
} else {
|
|
1637
|
+
checkForUnknownOptions();
|
|
1638
|
+
this._processArguments();
|
|
1639
|
+
// fall through for caller to handle after calling .parse()
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Find matching command.
|
|
1645
|
+
*
|
|
1646
|
+
* @private
|
|
1647
|
+
* @return {Command | undefined}
|
|
1648
|
+
*/
|
|
1649
|
+
_findCommand(name) {
|
|
1650
|
+
if (!name) return undefined;
|
|
1651
|
+
return this.commands.find(
|
|
1652
|
+
(cmd) => cmd._name === name || cmd._aliases.includes(name),
|
|
1653
|
+
);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Return an option matching `arg` if any.
|
|
1658
|
+
*
|
|
1659
|
+
* @param {string} arg
|
|
1660
|
+
* @return {Option}
|
|
1661
|
+
* @package
|
|
1662
|
+
*/
|
|
1663
|
+
|
|
1664
|
+
_findOption(arg) {
|
|
1665
|
+
return this.options.find((option) => option.is(arg));
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* Display an error message if a mandatory option does not have a value.
|
|
1670
|
+
* Called after checking for help flags in leaf subcommand.
|
|
1671
|
+
*
|
|
1672
|
+
* @private
|
|
1673
|
+
*/
|
|
1674
|
+
|
|
1675
|
+
_checkForMissingMandatoryOptions() {
|
|
1676
|
+
// Walk up hierarchy so can call in subcommand after checking for displaying help.
|
|
1677
|
+
this._getCommandAndAncestors().forEach((cmd) => {
|
|
1678
|
+
cmd.options.forEach((anOption) => {
|
|
1679
|
+
if (
|
|
1680
|
+
anOption.mandatory &&
|
|
1681
|
+
cmd.getOptionValue(anOption.attributeName()) === undefined
|
|
1682
|
+
) {
|
|
1683
|
+
cmd.missingMandatoryOptionValue(anOption);
|
|
1684
|
+
}
|
|
1685
|
+
});
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* Display an error message if conflicting options are used together in this.
|
|
1691
|
+
*
|
|
1692
|
+
* @private
|
|
1693
|
+
*/
|
|
1694
|
+
_checkForConflictingLocalOptions() {
|
|
1695
|
+
const definedNonDefaultOptions = this.options.filter((option) => {
|
|
1696
|
+
const optionKey = option.attributeName();
|
|
1697
|
+
if (this.getOptionValue(optionKey) === undefined) {
|
|
1698
|
+
return false;
|
|
1699
|
+
}
|
|
1700
|
+
return this.getOptionValueSource(optionKey) !== 'default';
|
|
1701
|
+
});
|
|
1702
|
+
|
|
1703
|
+
const optionsWithConflicting = definedNonDefaultOptions.filter(
|
|
1704
|
+
(option) => option.conflictsWith.length > 0,
|
|
1705
|
+
);
|
|
1706
|
+
|
|
1707
|
+
optionsWithConflicting.forEach((option) => {
|
|
1708
|
+
const conflictingAndDefined = definedNonDefaultOptions.find((defined) =>
|
|
1709
|
+
option.conflictsWith.includes(defined.attributeName()),
|
|
1710
|
+
);
|
|
1711
|
+
if (conflictingAndDefined) {
|
|
1712
|
+
this._conflictingOption(option, conflictingAndDefined);
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Display an error message if conflicting options are used together.
|
|
1719
|
+
* Called after checking for help flags in leaf subcommand.
|
|
1720
|
+
*
|
|
1721
|
+
* @private
|
|
1722
|
+
*/
|
|
1723
|
+
_checkForConflictingOptions() {
|
|
1724
|
+
// Walk up hierarchy so can call in subcommand after checking for displaying help.
|
|
1725
|
+
this._getCommandAndAncestors().forEach((cmd) => {
|
|
1726
|
+
cmd._checkForConflictingLocalOptions();
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Parse options from `argv` removing known options,
|
|
1732
|
+
* and return argv split into operands and unknown arguments.
|
|
1733
|
+
*
|
|
1734
|
+
* Side effects: modifies command by storing options. Does not reset state if called again.
|
|
1735
|
+
*
|
|
1736
|
+
* Examples:
|
|
1737
|
+
*
|
|
1738
|
+
* argv => operands, unknown
|
|
1739
|
+
* --known kkk op => [op], []
|
|
1740
|
+
* op --known kkk => [op], []
|
|
1741
|
+
* sub --unknown uuu op => [sub], [--unknown uuu op]
|
|
1742
|
+
* sub -- --unknown uuu op => [sub --unknown uuu op], []
|
|
1743
|
+
*
|
|
1744
|
+
* @param {string[]} args
|
|
1745
|
+
* @return {{operands: string[], unknown: string[]}}
|
|
1746
|
+
*/
|
|
1747
|
+
|
|
1748
|
+
parseOptions(args) {
|
|
1749
|
+
const operands = []; // operands, not options or values
|
|
1750
|
+
const unknown = []; // first unknown option and remaining unknown args
|
|
1751
|
+
let dest = operands;
|
|
1752
|
+
|
|
1753
|
+
function maybeOption(arg) {
|
|
1754
|
+
return arg.length > 1 && arg[0] === '-';
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
const negativeNumberArg = (arg) => {
|
|
1758
|
+
// return false if not a negative number
|
|
1759
|
+
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
|
|
1760
|
+
// negative number is ok unless digit used as an option in command hierarchy
|
|
1761
|
+
return !this._getCommandAndAncestors().some((cmd) =>
|
|
1762
|
+
cmd.options
|
|
1763
|
+
.map((opt) => opt.short)
|
|
1764
|
+
.some((short) => /^-\d$/.test(short)),
|
|
1765
|
+
);
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1768
|
+
// parse options
|
|
1769
|
+
let activeVariadicOption = null;
|
|
1770
|
+
let activeGroup = null; // working through group of short options, like -abc
|
|
1771
|
+
let i = 0;
|
|
1772
|
+
while (i < args.length || activeGroup) {
|
|
1773
|
+
const arg = activeGroup ?? args[i++];
|
|
1774
|
+
activeGroup = null;
|
|
1775
|
+
|
|
1776
|
+
// literal
|
|
1777
|
+
if (arg === '--') {
|
|
1778
|
+
if (dest === unknown) dest.push(arg);
|
|
1779
|
+
dest.push(...args.slice(i));
|
|
1780
|
+
break;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
if (
|
|
1784
|
+
activeVariadicOption &&
|
|
1785
|
+
(!maybeOption(arg) || negativeNumberArg(arg))
|
|
1786
|
+
) {
|
|
1787
|
+
this.emit(`option:${activeVariadicOption.name()}`, arg);
|
|
1788
|
+
continue;
|
|
1789
|
+
}
|
|
1790
|
+
activeVariadicOption = null;
|
|
1791
|
+
|
|
1792
|
+
if (maybeOption(arg)) {
|
|
1793
|
+
const option = this._findOption(arg);
|
|
1794
|
+
// recognised option, call listener to assign value with possible custom processing
|
|
1795
|
+
if (option) {
|
|
1796
|
+
if (option.required) {
|
|
1797
|
+
const value = args[i++];
|
|
1798
|
+
if (value === undefined) this.optionMissingArgument(option);
|
|
1799
|
+
this.emit(`option:${option.name()}`, value);
|
|
1800
|
+
} else if (option.optional) {
|
|
1801
|
+
let value = null;
|
|
1802
|
+
// historical behaviour is optional value is following arg unless an option
|
|
1803
|
+
if (
|
|
1804
|
+
i < args.length &&
|
|
1805
|
+
(!maybeOption(args[i]) || negativeNumberArg(args[i]))
|
|
1806
|
+
) {
|
|
1807
|
+
value = args[i++];
|
|
1808
|
+
}
|
|
1809
|
+
this.emit(`option:${option.name()}`, value);
|
|
1810
|
+
} else {
|
|
1811
|
+
// boolean flag
|
|
1812
|
+
this.emit(`option:${option.name()}`);
|
|
1813
|
+
}
|
|
1814
|
+
activeVariadicOption = option.variadic ? option : null;
|
|
1815
|
+
continue;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
// Look for combo options following single dash, eat first one if known.
|
|
1820
|
+
if (arg.length > 2 && arg[0] === '-' && arg[1] !== '-') {
|
|
1821
|
+
const option = this._findOption(`-${arg[1]}`);
|
|
1822
|
+
if (option) {
|
|
1823
|
+
if (
|
|
1824
|
+
option.required ||
|
|
1825
|
+
(option.optional && this._combineFlagAndOptionalValue)
|
|
1826
|
+
) {
|
|
1827
|
+
// option with value following in same argument
|
|
1828
|
+
this.emit(`option:${option.name()}`, arg.slice(2));
|
|
1829
|
+
} else {
|
|
1830
|
+
// boolean option
|
|
1831
|
+
this.emit(`option:${option.name()}`);
|
|
1832
|
+
// remove the processed option and keep processing group
|
|
1833
|
+
activeGroup = `-${arg.slice(2)}`;
|
|
1834
|
+
}
|
|
1835
|
+
continue;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
// Look for known long flag with value, like --foo=bar
|
|
1840
|
+
if (/^--[^=]+=/.test(arg)) {
|
|
1841
|
+
const index = arg.indexOf('=');
|
|
1842
|
+
const option = this._findOption(arg.slice(0, index));
|
|
1843
|
+
if (option && (option.required || option.optional)) {
|
|
1844
|
+
this.emit(`option:${option.name()}`, arg.slice(index + 1));
|
|
1845
|
+
continue;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
// Not a recognised option by this command.
|
|
1850
|
+
// Might be a command-argument, or subcommand option, or unknown option, or help command or option.
|
|
1851
|
+
|
|
1852
|
+
// An unknown option means further arguments also classified as unknown so can be reprocessed by subcommands.
|
|
1853
|
+
// A negative number in a leaf command is not an unknown option.
|
|
1854
|
+
if (
|
|
1855
|
+
dest === operands &&
|
|
1856
|
+
maybeOption(arg) &&
|
|
1857
|
+
!(this.commands.length === 0 && negativeNumberArg(arg))
|
|
1858
|
+
) {
|
|
1859
|
+
dest = unknown;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
// If using positionalOptions, stop processing our options at subcommand.
|
|
1863
|
+
if (
|
|
1864
|
+
(this._enablePositionalOptions || this._passThroughOptions) &&
|
|
1865
|
+
operands.length === 0 &&
|
|
1866
|
+
unknown.length === 0
|
|
1867
|
+
) {
|
|
1868
|
+
if (this._findCommand(arg)) {
|
|
1869
|
+
operands.push(arg);
|
|
1870
|
+
unknown.push(...args.slice(i));
|
|
1871
|
+
break;
|
|
1872
|
+
} else if (
|
|
1873
|
+
this._getHelpCommand() &&
|
|
1874
|
+
arg === this._getHelpCommand().name()
|
|
1875
|
+
) {
|
|
1876
|
+
operands.push(arg, ...args.slice(i));
|
|
1877
|
+
break;
|
|
1878
|
+
} else if (this._defaultCommandName) {
|
|
1879
|
+
unknown.push(arg, ...args.slice(i));
|
|
1880
|
+
break;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
// If using passThroughOptions, stop processing options at first command-argument.
|
|
1885
|
+
if (this._passThroughOptions) {
|
|
1886
|
+
dest.push(arg, ...args.slice(i));
|
|
1887
|
+
break;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
// add arg
|
|
1891
|
+
dest.push(arg);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
return { operands, unknown };
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* Return an object containing local option values as key-value pairs.
|
|
1899
|
+
*
|
|
1900
|
+
* @return {object}
|
|
1901
|
+
*/
|
|
1902
|
+
opts() {
|
|
1903
|
+
if (this._storeOptionsAsProperties) {
|
|
1904
|
+
// Preserve original behaviour so backwards compatible when still using properties
|
|
1905
|
+
const result = {};
|
|
1906
|
+
const len = this.options.length;
|
|
1907
|
+
|
|
1908
|
+
for (let i = 0; i < len; i++) {
|
|
1909
|
+
const key = this.options[i].attributeName();
|
|
1910
|
+
result[key] =
|
|
1911
|
+
key === this._versionOptionName ? this._version : this[key];
|
|
1912
|
+
}
|
|
1913
|
+
return result;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
return this._optionValues;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* Return an object containing merged local and global option values as key-value pairs.
|
|
1921
|
+
*
|
|
1922
|
+
* @return {object}
|
|
1923
|
+
*/
|
|
1924
|
+
optsWithGlobals() {
|
|
1925
|
+
// globals overwrite locals
|
|
1926
|
+
return this._getCommandAndAncestors().reduce(
|
|
1927
|
+
(combinedOptions, cmd) => Object.assign(combinedOptions, cmd.opts()),
|
|
1928
|
+
{},
|
|
1929
|
+
);
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* Display error message and exit (or call exitOverride).
|
|
1934
|
+
*
|
|
1935
|
+
* @param {string} message
|
|
1936
|
+
* @param {object} [errorOptions]
|
|
1937
|
+
* @param {string} [errorOptions.code] - an id string representing the error
|
|
1938
|
+
* @param {number} [errorOptions.exitCode] - used with process.exit
|
|
1939
|
+
*/
|
|
1940
|
+
error(message, errorOptions) {
|
|
1941
|
+
// output handling
|
|
1942
|
+
this._outputConfiguration.outputError(
|
|
1943
|
+
`${message}\n`,
|
|
1944
|
+
this._outputConfiguration.writeErr,
|
|
1945
|
+
);
|
|
1946
|
+
if (typeof this._showHelpAfterError === 'string') {
|
|
1947
|
+
this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
|
|
1948
|
+
} else if (this._showHelpAfterError) {
|
|
1949
|
+
this._outputConfiguration.writeErr('\n');
|
|
1950
|
+
this.outputHelp({ error: true });
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
// exit handling
|
|
1954
|
+
const config = errorOptions || {};
|
|
1955
|
+
const exitCode = config.exitCode || 1;
|
|
1956
|
+
const code = config.code || 'commander.error';
|
|
1957
|
+
this._exit(exitCode, code, message);
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* Apply any option related environment variables, if option does
|
|
1962
|
+
* not have a value from cli or client code.
|
|
1963
|
+
*
|
|
1964
|
+
* @private
|
|
1965
|
+
*/
|
|
1966
|
+
_parseOptionsEnv() {
|
|
1967
|
+
this.options.forEach((option) => {
|
|
1968
|
+
if (option.envVar && option.envVar in process.env) {
|
|
1969
|
+
const optionKey = option.attributeName();
|
|
1970
|
+
// Priority check. Do not overwrite cli or options from unknown source (client-code).
|
|
1971
|
+
if (
|
|
1972
|
+
this.getOptionValue(optionKey) === undefined ||
|
|
1973
|
+
['default', 'config', 'env'].includes(
|
|
1974
|
+
this.getOptionValueSource(optionKey),
|
|
1975
|
+
)
|
|
1976
|
+
) {
|
|
1977
|
+
if (option.required || option.optional) {
|
|
1978
|
+
// option can take a value
|
|
1979
|
+
// keep very simple, optional always takes value
|
|
1980
|
+
this.emit(`optionEnv:${option.name()}`, process.env[option.envVar]);
|
|
1981
|
+
} else {
|
|
1982
|
+
// boolean
|
|
1983
|
+
// keep very simple, only care that envVar defined and not the value
|
|
1984
|
+
this.emit(`optionEnv:${option.name()}`);
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
});
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* Apply any implied option values, if option is undefined or default value.
|
|
1993
|
+
*
|
|
1994
|
+
* @private
|
|
1995
|
+
*/
|
|
1996
|
+
_parseOptionsImplied() {
|
|
1997
|
+
const dualHelper = new DualOptions(this.options);
|
|
1998
|
+
const hasCustomOptionValue = (optionKey) => {
|
|
1999
|
+
return (
|
|
2000
|
+
this.getOptionValue(optionKey) !== undefined &&
|
|
2001
|
+
!['default', 'implied'].includes(this.getOptionValueSource(optionKey))
|
|
2002
|
+
);
|
|
2003
|
+
};
|
|
2004
|
+
this.options
|
|
2005
|
+
.filter(
|
|
2006
|
+
(option) =>
|
|
2007
|
+
option.implied !== undefined &&
|
|
2008
|
+
hasCustomOptionValue(option.attributeName()) &&
|
|
2009
|
+
dualHelper.valueFromOption(
|
|
2010
|
+
this.getOptionValue(option.attributeName()),
|
|
2011
|
+
option,
|
|
2012
|
+
),
|
|
2013
|
+
)
|
|
2014
|
+
.forEach((option) => {
|
|
2015
|
+
Object.keys(option.implied)
|
|
2016
|
+
.filter((impliedKey) => !hasCustomOptionValue(impliedKey))
|
|
2017
|
+
.forEach((impliedKey) => {
|
|
2018
|
+
this.setOptionValueWithSource(
|
|
2019
|
+
impliedKey,
|
|
2020
|
+
option.implied[impliedKey],
|
|
2021
|
+
'implied',
|
|
2022
|
+
);
|
|
2023
|
+
});
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
/**
|
|
2028
|
+
* Argument `name` is missing.
|
|
2029
|
+
*
|
|
2030
|
+
* @param {string} name
|
|
2031
|
+
* @private
|
|
2032
|
+
*/
|
|
2033
|
+
|
|
2034
|
+
missingArgument(name) {
|
|
2035
|
+
const message = `error: missing required argument '${name}'`;
|
|
2036
|
+
this.error(message, { code: 'commander.missingArgument' });
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
/**
|
|
2040
|
+
* `Option` is missing an argument.
|
|
2041
|
+
*
|
|
2042
|
+
* @param {Option} option
|
|
2043
|
+
* @private
|
|
2044
|
+
*/
|
|
2045
|
+
|
|
2046
|
+
optionMissingArgument(option) {
|
|
2047
|
+
const message = `error: option '${option.flags}' argument missing`;
|
|
2048
|
+
this.error(message, { code: 'commander.optionMissingArgument' });
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
/**
|
|
2052
|
+
* `Option` does not have a value, and is a mandatory option.
|
|
2053
|
+
*
|
|
2054
|
+
* @param {Option} option
|
|
2055
|
+
* @private
|
|
2056
|
+
*/
|
|
2057
|
+
|
|
2058
|
+
missingMandatoryOptionValue(option) {
|
|
2059
|
+
const message = `error: required option '${option.flags}' not specified`;
|
|
2060
|
+
this.error(message, { code: 'commander.missingMandatoryOptionValue' });
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* `Option` conflicts with another option.
|
|
2065
|
+
*
|
|
2066
|
+
* @param {Option} option
|
|
2067
|
+
* @param {Option} conflictingOption
|
|
2068
|
+
* @private
|
|
2069
|
+
*/
|
|
2070
|
+
_conflictingOption(option, conflictingOption) {
|
|
2071
|
+
// The calling code does not know whether a negated option is the source of the
|
|
2072
|
+
// value, so do some work to take an educated guess.
|
|
2073
|
+
const findBestOptionFromValue = (option) => {
|
|
2074
|
+
const optionKey = option.attributeName();
|
|
2075
|
+
const optionValue = this.getOptionValue(optionKey);
|
|
2076
|
+
const negativeOption = this.options.find(
|
|
2077
|
+
(target) => target.negate && optionKey === target.attributeName(),
|
|
2078
|
+
);
|
|
2079
|
+
const positiveOption = this.options.find(
|
|
2080
|
+
(target) => !target.negate && optionKey === target.attributeName(),
|
|
2081
|
+
);
|
|
2082
|
+
if (
|
|
2083
|
+
negativeOption &&
|
|
2084
|
+
((negativeOption.presetArg === undefined && optionValue === false) ||
|
|
2085
|
+
(negativeOption.presetArg !== undefined &&
|
|
2086
|
+
optionValue === negativeOption.presetArg))
|
|
2087
|
+
) {
|
|
2088
|
+
return negativeOption;
|
|
2089
|
+
}
|
|
2090
|
+
return positiveOption || option;
|
|
2091
|
+
};
|
|
2092
|
+
|
|
2093
|
+
const getErrorMessage = (option) => {
|
|
2094
|
+
const bestOption = findBestOptionFromValue(option);
|
|
2095
|
+
const optionKey = bestOption.attributeName();
|
|
2096
|
+
const source = this.getOptionValueSource(optionKey);
|
|
2097
|
+
if (source === 'env') {
|
|
2098
|
+
return `environment variable '${bestOption.envVar}'`;
|
|
2099
|
+
}
|
|
2100
|
+
return `option '${bestOption.flags}'`;
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
const message = `error: ${getErrorMessage(option)} cannot be used with ${getErrorMessage(conflictingOption)}`;
|
|
2104
|
+
this.error(message, { code: 'commander.conflictingOption' });
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* Unknown option `flag`.
|
|
2109
|
+
*
|
|
2110
|
+
* @param {string} flag
|
|
2111
|
+
* @private
|
|
2112
|
+
*/
|
|
2113
|
+
|
|
2114
|
+
unknownOption(flag) {
|
|
2115
|
+
if (this._allowUnknownOption) return;
|
|
2116
|
+
let suggestion = '';
|
|
2117
|
+
|
|
2118
|
+
if (flag.startsWith('--') && this._showSuggestionAfterError) {
|
|
2119
|
+
// Looping to pick up the global options too
|
|
2120
|
+
let candidateFlags = [];
|
|
2121
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
2122
|
+
let command = this;
|
|
2123
|
+
do {
|
|
2124
|
+
const moreFlags = command
|
|
2125
|
+
.createHelp()
|
|
2126
|
+
.visibleOptions(command)
|
|
2127
|
+
.filter((option) => option.long)
|
|
2128
|
+
.map((option) => option.long);
|
|
2129
|
+
candidateFlags = candidateFlags.concat(moreFlags);
|
|
2130
|
+
command = command.parent;
|
|
2131
|
+
} while (command && !command._enablePositionalOptions);
|
|
2132
|
+
suggestion = suggestSimilar(flag, candidateFlags);
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
const message = `error: unknown option '${flag}'${suggestion}`;
|
|
2136
|
+
this.error(message, { code: 'commander.unknownOption' });
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Excess arguments, more than expected.
|
|
2141
|
+
*
|
|
2142
|
+
* @param {string[]} receivedArgs
|
|
2143
|
+
* @private
|
|
2144
|
+
*/
|
|
2145
|
+
|
|
2146
|
+
_excessArguments(receivedArgs) {
|
|
2147
|
+
if (this._allowExcessArguments) return;
|
|
2148
|
+
|
|
2149
|
+
const expected = this.registeredArguments.length;
|
|
2150
|
+
const s = expected === 1 ? '' : 's';
|
|
2151
|
+
const forSubcommand = this.parent ? ` for '${this.name()}'` : '';
|
|
2152
|
+
const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`;
|
|
2153
|
+
this.error(message, { code: 'commander.excessArguments' });
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Unknown command.
|
|
2158
|
+
*
|
|
2159
|
+
* @private
|
|
2160
|
+
*/
|
|
2161
|
+
|
|
2162
|
+
unknownCommand() {
|
|
2163
|
+
const unknownName = this.args[0];
|
|
2164
|
+
let suggestion = '';
|
|
2165
|
+
|
|
2166
|
+
if (this._showSuggestionAfterError) {
|
|
2167
|
+
const candidateNames = [];
|
|
2168
|
+
this.createHelp()
|
|
2169
|
+
.visibleCommands(this)
|
|
2170
|
+
.forEach((command) => {
|
|
2171
|
+
candidateNames.push(command.name());
|
|
2172
|
+
// just visible alias
|
|
2173
|
+
if (command.alias()) candidateNames.push(command.alias());
|
|
2174
|
+
});
|
|
2175
|
+
suggestion = suggestSimilar(unknownName, candidateNames);
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
const message = `error: unknown command '${unknownName}'${suggestion}`;
|
|
2179
|
+
this.error(message, { code: 'commander.unknownCommand' });
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Get or set the program version.
|
|
2184
|
+
*
|
|
2185
|
+
* This method auto-registers the "-V, --version" option which will print the version number.
|
|
2186
|
+
*
|
|
2187
|
+
* You can optionally supply the flags and description to override the defaults.
|
|
2188
|
+
*
|
|
2189
|
+
* @param {string} [str]
|
|
2190
|
+
* @param {string} [flags]
|
|
2191
|
+
* @param {string} [description]
|
|
2192
|
+
* @return {(this | string | undefined)} `this` command for chaining, or version string if no arguments
|
|
2193
|
+
*/
|
|
2194
|
+
|
|
2195
|
+
version(str, flags, description) {
|
|
2196
|
+
if (str === undefined) return this._version;
|
|
2197
|
+
this._version = str;
|
|
2198
|
+
flags = flags || '-V, --version';
|
|
2199
|
+
description = description || 'output the version number';
|
|
2200
|
+
const versionOption = this.createOption(flags, description);
|
|
2201
|
+
this._versionOptionName = versionOption.attributeName();
|
|
2202
|
+
this._registerOption(versionOption);
|
|
2203
|
+
|
|
2204
|
+
this.on('option:' + versionOption.name(), () => {
|
|
2205
|
+
this._outputConfiguration.writeOut(`${str}\n`);
|
|
2206
|
+
this._exit(0, 'commander.version', str);
|
|
2207
|
+
});
|
|
2208
|
+
return this;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* Set the description.
|
|
2213
|
+
*
|
|
2214
|
+
* @param {string} [str]
|
|
2215
|
+
* @param {object} [argsDescription]
|
|
2216
|
+
* @return {(string|Command)}
|
|
2217
|
+
*/
|
|
2218
|
+
description(str, argsDescription) {
|
|
2219
|
+
if (str === undefined && argsDescription === undefined)
|
|
2220
|
+
return this._description;
|
|
2221
|
+
this._description = str;
|
|
2222
|
+
if (argsDescription) {
|
|
2223
|
+
this._argsDescription = argsDescription;
|
|
2224
|
+
}
|
|
2225
|
+
return this;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Set the summary. Used when listed as subcommand of parent.
|
|
2230
|
+
*
|
|
2231
|
+
* @param {string} [str]
|
|
2232
|
+
* @return {(string|Command)}
|
|
2233
|
+
*/
|
|
2234
|
+
summary(str) {
|
|
2235
|
+
if (str === undefined) return this._summary;
|
|
2236
|
+
this._summary = str;
|
|
2237
|
+
return this;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
/**
|
|
2241
|
+
* Set an alias for the command.
|
|
2242
|
+
*
|
|
2243
|
+
* You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
|
|
2244
|
+
*
|
|
2245
|
+
* @param {string} [alias]
|
|
2246
|
+
* @return {(string|Command)}
|
|
2247
|
+
*/
|
|
2248
|
+
|
|
2249
|
+
alias(alias) {
|
|
2250
|
+
if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility
|
|
2251
|
+
|
|
2252
|
+
/** @type {Command} */
|
|
2253
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
2254
|
+
let command = this;
|
|
2255
|
+
if (
|
|
2256
|
+
this.commands.length !== 0 &&
|
|
2257
|
+
this.commands[this.commands.length - 1]._executableHandler
|
|
2258
|
+
) {
|
|
2259
|
+
// assume adding alias for last added executable subcommand, rather than this
|
|
2260
|
+
command = this.commands[this.commands.length - 1];
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
if (alias === command._name)
|
|
2264
|
+
throw new Error("Command alias can't be the same as its name");
|
|
2265
|
+
const matchingCommand = this.parent?._findCommand(alias);
|
|
2266
|
+
if (matchingCommand) {
|
|
2267
|
+
// c.f. _registerCommand
|
|
2268
|
+
const existingCmd = [matchingCommand.name()]
|
|
2269
|
+
.concat(matchingCommand.aliases())
|
|
2270
|
+
.join('|');
|
|
2271
|
+
throw new Error(
|
|
2272
|
+
`cannot add alias '${alias}' to command '${this.name()}' as already have command '${existingCmd}'`,
|
|
2273
|
+
);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
command._aliases.push(alias);
|
|
2277
|
+
return this;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Set aliases for the command.
|
|
2282
|
+
*
|
|
2283
|
+
* Only the first alias is shown in the auto-generated help.
|
|
2284
|
+
*
|
|
2285
|
+
* @param {string[]} [aliases]
|
|
2286
|
+
* @return {(string[]|Command)}
|
|
2287
|
+
*/
|
|
2288
|
+
|
|
2289
|
+
aliases(aliases) {
|
|
2290
|
+
// Getter for the array of aliases is the main reason for having aliases() in addition to alias().
|
|
2291
|
+
if (aliases === undefined) return this._aliases;
|
|
2292
|
+
|
|
2293
|
+
aliases.forEach((alias) => this.alias(alias));
|
|
2294
|
+
return this;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* Set / get the command usage `str`.
|
|
2299
|
+
*
|
|
2300
|
+
* @param {string} [str]
|
|
2301
|
+
* @return {(string|Command)}
|
|
2302
|
+
*/
|
|
2303
|
+
|
|
2304
|
+
usage(str) {
|
|
2305
|
+
if (str === undefined) {
|
|
2306
|
+
if (this._usage) return this._usage;
|
|
2307
|
+
|
|
2308
|
+
const args = this.registeredArguments.map((arg) => {
|
|
2309
|
+
return humanReadableArgName(arg);
|
|
2310
|
+
});
|
|
2311
|
+
return []
|
|
2312
|
+
.concat(
|
|
2313
|
+
this.options.length || this._helpOption !== null ? '[options]' : [],
|
|
2314
|
+
this.commands.length ? '[command]' : [],
|
|
2315
|
+
this.registeredArguments.length ? args : [],
|
|
2316
|
+
)
|
|
2317
|
+
.join(' ');
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
this._usage = str;
|
|
2321
|
+
return this;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Get or set the name of the command.
|
|
2326
|
+
*
|
|
2327
|
+
* @param {string} [str]
|
|
2328
|
+
* @return {(string|Command)}
|
|
2329
|
+
*/
|
|
2330
|
+
|
|
2331
|
+
name(str) {
|
|
2332
|
+
if (str === undefined) return this._name;
|
|
2333
|
+
this._name = str;
|
|
2334
|
+
return this;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* Set/get the help group heading for this subcommand in parent command's help.
|
|
2339
|
+
*
|
|
2340
|
+
* @param {string} [heading]
|
|
2341
|
+
* @return {Command | string}
|
|
2342
|
+
*/
|
|
2343
|
+
|
|
2344
|
+
helpGroup(heading) {
|
|
2345
|
+
if (heading === undefined) return this._helpGroupHeading ?? '';
|
|
2346
|
+
this._helpGroupHeading = heading;
|
|
2347
|
+
return this;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* Set/get the default help group heading for subcommands added to this command.
|
|
2352
|
+
* (This does not override a group set directly on the subcommand using .helpGroup().)
|
|
2353
|
+
*
|
|
2354
|
+
* @example
|
|
2355
|
+
* program.commandsGroup('Development Commands:);
|
|
2356
|
+
* program.command('watch')...
|
|
2357
|
+
* program.command('lint')...
|
|
2358
|
+
* ...
|
|
2359
|
+
*
|
|
2360
|
+
* @param {string} [heading]
|
|
2361
|
+
* @returns {Command | string}
|
|
2362
|
+
*/
|
|
2363
|
+
commandsGroup(heading) {
|
|
2364
|
+
if (heading === undefined) return this._defaultCommandGroup ?? '';
|
|
2365
|
+
this._defaultCommandGroup = heading;
|
|
2366
|
+
return this;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Set/get the default help group heading for options added to this command.
|
|
2371
|
+
* (This does not override a group set directly on the option using .helpGroup().)
|
|
2372
|
+
*
|
|
2373
|
+
* @example
|
|
2374
|
+
* program
|
|
2375
|
+
* .optionsGroup('Development Options:')
|
|
2376
|
+
* .option('-d, --debug', 'output extra debugging')
|
|
2377
|
+
* .option('-p, --profile', 'output profiling information')
|
|
2378
|
+
*
|
|
2379
|
+
* @param {string} [heading]
|
|
2380
|
+
* @returns {Command | string}
|
|
2381
|
+
*/
|
|
2382
|
+
optionsGroup(heading) {
|
|
2383
|
+
if (heading === undefined) return this._defaultOptionGroup ?? '';
|
|
2384
|
+
this._defaultOptionGroup = heading;
|
|
2385
|
+
return this;
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* @param {Option} option
|
|
2390
|
+
* @private
|
|
2391
|
+
*/
|
|
2392
|
+
_initOptionGroup(option) {
|
|
2393
|
+
if (this._defaultOptionGroup && !option.helpGroupHeading)
|
|
2394
|
+
option.helpGroup(this._defaultOptionGroup);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* @param {Command} cmd
|
|
2399
|
+
* @private
|
|
2400
|
+
*/
|
|
2401
|
+
_initCommandGroup(cmd) {
|
|
2402
|
+
if (this._defaultCommandGroup && !cmd.helpGroup())
|
|
2403
|
+
cmd.helpGroup(this._defaultCommandGroup);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Set the name of the command from script filename, such as process.argv[1],
|
|
2408
|
+
* or require.main.filename, or __filename.
|
|
2409
|
+
*
|
|
2410
|
+
* (Used internally and public although not documented in README.)
|
|
2411
|
+
*
|
|
2412
|
+
* @example
|
|
2413
|
+
* program.nameFromFilename(require.main.filename);
|
|
2414
|
+
*
|
|
2415
|
+
* @param {string} filename
|
|
2416
|
+
* @return {Command}
|
|
2417
|
+
*/
|
|
2418
|
+
|
|
2419
|
+
nameFromFilename(filename) {
|
|
2420
|
+
this._name = path.basename(filename, path.extname(filename));
|
|
2421
|
+
|
|
2422
|
+
return this;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Get or set the directory for searching for executable subcommands of this command.
|
|
2427
|
+
*
|
|
2428
|
+
* @example
|
|
2429
|
+
* program.executableDir(__dirname);
|
|
2430
|
+
* // or
|
|
2431
|
+
* program.executableDir('subcommands');
|
|
2432
|
+
*
|
|
2433
|
+
* @param {string} [path]
|
|
2434
|
+
* @return {(string|null|Command)}
|
|
2435
|
+
*/
|
|
2436
|
+
|
|
2437
|
+
executableDir(path) {
|
|
2438
|
+
if (path === undefined) return this._executableDir;
|
|
2439
|
+
this._executableDir = path;
|
|
2440
|
+
return this;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Return program help documentation.
|
|
2445
|
+
*
|
|
2446
|
+
* @param {{ error: boolean }} [contextOptions] - pass {error:true} to wrap for stderr instead of stdout
|
|
2447
|
+
* @return {string}
|
|
2448
|
+
*/
|
|
2449
|
+
|
|
2450
|
+
helpInformation(contextOptions) {
|
|
2451
|
+
const helper = this.createHelp();
|
|
2452
|
+
const context = this._getOutputContext(contextOptions);
|
|
2453
|
+
helper.prepareContext({
|
|
2454
|
+
error: context.error,
|
|
2455
|
+
helpWidth: context.helpWidth,
|
|
2456
|
+
outputHasColors: context.hasColors,
|
|
2457
|
+
});
|
|
2458
|
+
const text = helper.formatHelp(this, helper);
|
|
2459
|
+
if (context.hasColors) return text;
|
|
2460
|
+
return this._outputConfiguration.stripColor(text);
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* @typedef HelpContext
|
|
2465
|
+
* @type {object}
|
|
2466
|
+
* @property {boolean} error
|
|
2467
|
+
* @property {number} helpWidth
|
|
2468
|
+
* @property {boolean} hasColors
|
|
2469
|
+
* @property {function} write - includes stripColor if needed
|
|
2470
|
+
*
|
|
2471
|
+
* @returns {HelpContext}
|
|
2472
|
+
* @private
|
|
2473
|
+
*/
|
|
2474
|
+
|
|
2475
|
+
_getOutputContext(contextOptions) {
|
|
2476
|
+
contextOptions = contextOptions || {};
|
|
2477
|
+
const error = !!contextOptions.error;
|
|
2478
|
+
let baseWrite;
|
|
2479
|
+
let hasColors;
|
|
2480
|
+
let helpWidth;
|
|
2481
|
+
if (error) {
|
|
2482
|
+
baseWrite = (str) => this._outputConfiguration.writeErr(str);
|
|
2483
|
+
hasColors = this._outputConfiguration.getErrHasColors();
|
|
2484
|
+
helpWidth = this._outputConfiguration.getErrHelpWidth();
|
|
2485
|
+
} else {
|
|
2486
|
+
baseWrite = (str) => this._outputConfiguration.writeOut(str);
|
|
2487
|
+
hasColors = this._outputConfiguration.getOutHasColors();
|
|
2488
|
+
helpWidth = this._outputConfiguration.getOutHelpWidth();
|
|
2489
|
+
}
|
|
2490
|
+
const write = (str) => {
|
|
2491
|
+
if (!hasColors) str = this._outputConfiguration.stripColor(str);
|
|
2492
|
+
return baseWrite(str);
|
|
2493
|
+
};
|
|
2494
|
+
return { error, write, hasColors, helpWidth };
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* Output help information for this command.
|
|
2499
|
+
*
|
|
2500
|
+
* Outputs built-in help, and custom text added using `.addHelpText()`.
|
|
2501
|
+
*
|
|
2502
|
+
* @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout
|
|
2503
|
+
*/
|
|
2504
|
+
|
|
2505
|
+
outputHelp(contextOptions) {
|
|
2506
|
+
let deprecatedCallback;
|
|
2507
|
+
if (typeof contextOptions === 'function') {
|
|
2508
|
+
deprecatedCallback = contextOptions;
|
|
2509
|
+
contextOptions = undefined;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
const outputContext = this._getOutputContext(contextOptions);
|
|
2513
|
+
/** @type {HelpTextEventContext} */
|
|
2514
|
+
const eventContext = {
|
|
2515
|
+
error: outputContext.error,
|
|
2516
|
+
write: outputContext.write,
|
|
2517
|
+
command: this,
|
|
2518
|
+
};
|
|
2519
|
+
|
|
2520
|
+
this._getCommandAndAncestors()
|
|
2521
|
+
.reverse()
|
|
2522
|
+
.forEach((command) => command.emit('beforeAllHelp', eventContext));
|
|
2523
|
+
this.emit('beforeHelp', eventContext);
|
|
2524
|
+
|
|
2525
|
+
let helpInformation = this.helpInformation({ error: outputContext.error });
|
|
2526
|
+
if (deprecatedCallback) {
|
|
2527
|
+
helpInformation = deprecatedCallback(helpInformation);
|
|
2528
|
+
if (
|
|
2529
|
+
typeof helpInformation !== 'string' &&
|
|
2530
|
+
!Buffer.isBuffer(helpInformation)
|
|
2531
|
+
) {
|
|
2532
|
+
throw new Error('outputHelp callback must return a string or a Buffer');
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
outputContext.write(helpInformation);
|
|
2536
|
+
|
|
2537
|
+
if (this._getHelpOption()?.long) {
|
|
2538
|
+
this.emit(this._getHelpOption().long); // deprecated
|
|
2539
|
+
}
|
|
2540
|
+
this.emit('afterHelp', eventContext);
|
|
2541
|
+
this._getCommandAndAncestors().forEach((command) =>
|
|
2542
|
+
command.emit('afterAllHelp', eventContext),
|
|
2543
|
+
);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* You can pass in flags and a description to customise the built-in help option.
|
|
2548
|
+
* Pass in false to disable the built-in help option.
|
|
2549
|
+
*
|
|
2550
|
+
* @example
|
|
2551
|
+
* program.helpOption('-?, --help' 'show help'); // customise
|
|
2552
|
+
* program.helpOption(false); // disable
|
|
2553
|
+
*
|
|
2554
|
+
* @param {(string | boolean)} flags
|
|
2555
|
+
* @param {string} [description]
|
|
2556
|
+
* @return {Command} `this` command for chaining
|
|
2557
|
+
*/
|
|
2558
|
+
|
|
2559
|
+
helpOption(flags, description) {
|
|
2560
|
+
// Support enabling/disabling built-in help option.
|
|
2561
|
+
if (typeof flags === 'boolean') {
|
|
2562
|
+
if (flags) {
|
|
2563
|
+
if (this._helpOption === null) this._helpOption = undefined; // reenable
|
|
2564
|
+
if (this._defaultOptionGroup) {
|
|
2565
|
+
// make the option to store the group
|
|
2566
|
+
this._initOptionGroup(this._getHelpOption());
|
|
2567
|
+
}
|
|
2568
|
+
} else {
|
|
2569
|
+
this._helpOption = null; // disable
|
|
2570
|
+
}
|
|
2571
|
+
return this;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
// Customise flags and description.
|
|
2575
|
+
this._helpOption = this.createOption(
|
|
2576
|
+
flags ?? '-h, --help',
|
|
2577
|
+
description ?? 'display help for command',
|
|
2578
|
+
);
|
|
2579
|
+
// init group unless lazy create
|
|
2580
|
+
if (flags || description) this._initOptionGroup(this._helpOption);
|
|
2581
|
+
|
|
2582
|
+
return this;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Lazy create help option.
|
|
2587
|
+
* Returns null if has been disabled with .helpOption(false).
|
|
2588
|
+
*
|
|
2589
|
+
* @returns {(Option | null)} the help option
|
|
2590
|
+
* @package
|
|
2591
|
+
*/
|
|
2592
|
+
_getHelpOption() {
|
|
2593
|
+
// Lazy create help option on demand.
|
|
2594
|
+
if (this._helpOption === undefined) {
|
|
2595
|
+
this.helpOption(undefined, undefined);
|
|
2596
|
+
}
|
|
2597
|
+
return this._helpOption;
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* Supply your own option to use for the built-in help option.
|
|
2602
|
+
* This is an alternative to using helpOption() to customise the flags and description etc.
|
|
2603
|
+
*
|
|
2604
|
+
* @param {Option} option
|
|
2605
|
+
* @return {Command} `this` command for chaining
|
|
2606
|
+
*/
|
|
2607
|
+
addHelpOption(option) {
|
|
2608
|
+
this._helpOption = option;
|
|
2609
|
+
this._initOptionGroup(option);
|
|
2610
|
+
return this;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* Output help information and exit.
|
|
2615
|
+
*
|
|
2616
|
+
* Outputs built-in help, and custom text added using `.addHelpText()`.
|
|
2617
|
+
*
|
|
2618
|
+
* @param {{ error: boolean }} [contextOptions] - pass {error:true} to write to stderr instead of stdout
|
|
2619
|
+
*/
|
|
2620
|
+
|
|
2621
|
+
help(contextOptions) {
|
|
2622
|
+
this.outputHelp(contextOptions);
|
|
2623
|
+
let exitCode = Number(process.exitCode ?? 0); // process.exitCode does allow a string or an integer, but we prefer just a number
|
|
2624
|
+
if (
|
|
2625
|
+
exitCode === 0 &&
|
|
2626
|
+
contextOptions &&
|
|
2627
|
+
typeof contextOptions !== 'function' &&
|
|
2628
|
+
contextOptions.error
|
|
2629
|
+
) {
|
|
2630
|
+
exitCode = 1;
|
|
2631
|
+
}
|
|
2632
|
+
// message: do not have all displayed text available so only passing placeholder.
|
|
2633
|
+
this._exit(exitCode, 'commander.help', '(outputHelp)');
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* // Do a little typing to coordinate emit and listener for the help text events.
|
|
2638
|
+
* @typedef HelpTextEventContext
|
|
2639
|
+
* @type {object}
|
|
2640
|
+
* @property {boolean} error
|
|
2641
|
+
* @property {Command} command
|
|
2642
|
+
* @property {function} write
|
|
2643
|
+
*/
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* Add additional text to be displayed with the built-in help.
|
|
2647
|
+
*
|
|
2648
|
+
* Position is 'before' or 'after' to affect just this command,
|
|
2649
|
+
* and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
|
|
2650
|
+
*
|
|
2651
|
+
* @param {string} position - before or after built-in help
|
|
2652
|
+
* @param {(string | Function)} text - string to add, or a function returning a string
|
|
2653
|
+
* @return {Command} `this` command for chaining
|
|
2654
|
+
*/
|
|
2655
|
+
|
|
2656
|
+
addHelpText(position, text) {
|
|
2657
|
+
const allowedValues = ['beforeAll', 'before', 'after', 'afterAll'];
|
|
2658
|
+
if (!allowedValues.includes(position)) {
|
|
2659
|
+
throw new Error(`Unexpected value for position to addHelpText.
|
|
2660
|
+
Expecting one of '${allowedValues.join("', '")}'`);
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
const helpEvent = `${position}Help`;
|
|
2664
|
+
this.on(helpEvent, (/** @type {HelpTextEventContext} */ context) => {
|
|
2665
|
+
let helpStr;
|
|
2666
|
+
if (typeof text === 'function') {
|
|
2667
|
+
helpStr = text({ error: context.error, command: context.command });
|
|
2668
|
+
} else {
|
|
2669
|
+
helpStr = text;
|
|
2670
|
+
}
|
|
2671
|
+
// Ignore falsy value when nothing to output.
|
|
2672
|
+
if (helpStr) {
|
|
2673
|
+
context.write(`${helpStr}\n`);
|
|
2674
|
+
}
|
|
2675
|
+
});
|
|
2676
|
+
return this;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Output help information if help flags specified
|
|
2681
|
+
*
|
|
2682
|
+
* @param {Array} args - array of options to search for help flags
|
|
2683
|
+
* @private
|
|
2684
|
+
*/
|
|
2685
|
+
|
|
2686
|
+
_outputHelpIfRequested(args) {
|
|
2687
|
+
const helpOption = this._getHelpOption();
|
|
2688
|
+
const helpRequested = helpOption && args.find((arg) => helpOption.is(arg));
|
|
2689
|
+
if (helpRequested) {
|
|
2690
|
+
this.outputHelp();
|
|
2691
|
+
// (Do not have all displayed text available so only passing placeholder.)
|
|
2692
|
+
this._exit(0, 'commander.helpDisplayed', '(outputHelp)');
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* Scan arguments and increment port number for inspect calls (to avoid conflicts when spawning new command).
|
|
2699
|
+
*
|
|
2700
|
+
* @param {string[]} args - array of arguments from node.execArgv
|
|
2701
|
+
* @returns {string[]}
|
|
2702
|
+
* @private
|
|
2703
|
+
*/
|
|
2704
|
+
|
|
2705
|
+
function incrementNodeInspectorPort(args) {
|
|
2706
|
+
// Testing for these options:
|
|
2707
|
+
// --inspect[=[host:]port]
|
|
2708
|
+
// --inspect-brk[=[host:]port]
|
|
2709
|
+
// --inspect-port=[host:]port
|
|
2710
|
+
return args.map((arg) => {
|
|
2711
|
+
if (!arg.startsWith('--inspect')) {
|
|
2712
|
+
return arg;
|
|
2713
|
+
}
|
|
2714
|
+
let debugOption;
|
|
2715
|
+
let debugHost = '127.0.0.1';
|
|
2716
|
+
let debugPort = '9229';
|
|
2717
|
+
let match;
|
|
2718
|
+
if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
|
|
2719
|
+
// e.g. --inspect
|
|
2720
|
+
debugOption = match[1];
|
|
2721
|
+
} else if (
|
|
2722
|
+
(match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null
|
|
2723
|
+
) {
|
|
2724
|
+
debugOption = match[1];
|
|
2725
|
+
if (/^\d+$/.test(match[3])) {
|
|
2726
|
+
// e.g. --inspect=1234
|
|
2727
|
+
debugPort = match[3];
|
|
2728
|
+
} else {
|
|
2729
|
+
// e.g. --inspect=localhost
|
|
2730
|
+
debugHost = match[3];
|
|
2731
|
+
}
|
|
2732
|
+
} else if (
|
|
2733
|
+
(match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null
|
|
2734
|
+
) {
|
|
2735
|
+
// e.g. --inspect=localhost:1234
|
|
2736
|
+
debugOption = match[1];
|
|
2737
|
+
debugHost = match[3];
|
|
2738
|
+
debugPort = match[4];
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
if (debugOption && debugPort !== '0') {
|
|
2742
|
+
return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
|
|
2743
|
+
}
|
|
2744
|
+
return arg;
|
|
2745
|
+
});
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* @returns {boolean | undefined}
|
|
2750
|
+
* @package
|
|
2751
|
+
*/
|
|
2752
|
+
function useColor() {
|
|
2753
|
+
// Test for common conventions.
|
|
2754
|
+
// NB: the observed behaviour is in combination with how author adds color! For example:
|
|
2755
|
+
// - we do not test NODE_DISABLE_COLORS, but util:styletext does
|
|
2756
|
+
// - we do test NO_COLOR, but Chalk does not
|
|
2757
|
+
//
|
|
2758
|
+
// References:
|
|
2759
|
+
// https://no-color.org
|
|
2760
|
+
// https://bixense.com/clicolors/
|
|
2761
|
+
// https://github.com/nodejs/node/blob/0a00217a5f67ef4a22384cfc80eb6dd9a917fdc1/lib/internal/tty.js#L109
|
|
2762
|
+
// https://github.com/chalk/supports-color/blob/c214314a14bcb174b12b3014b2b0a8de375029ae/index.js#L33
|
|
2763
|
+
// (https://force-color.org recent web page from 2023, does not match major javascript implementations)
|
|
2764
|
+
|
|
2765
|
+
if (
|
|
2766
|
+
process.env.NO_COLOR ||
|
|
2767
|
+
process.env.FORCE_COLOR === '0' ||
|
|
2768
|
+
process.env.FORCE_COLOR === 'false'
|
|
2769
|
+
)
|
|
2770
|
+
return false;
|
|
2771
|
+
if (process.env.FORCE_COLOR || process.env.CLICOLOR_FORCE !== undefined)
|
|
2772
|
+
return true;
|
|
2773
|
+
return undefined;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
exports.Command = Command;
|
|
2777
|
+
exports.useColor = useColor; // exporting for tests
|