avo-cli 0.0.3 → 4.2.0.beta.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.
- checksums.yaml +4 -4
- data/README.md +605 -0
- data/avo-cli.gemspec +22 -23
- data/exe/avo +6 -0
- data/lib/avo/cli/runner.rb +86 -0
- data/lib/avo/cli/version.rb +7 -0
- data/lib/avo-cli.rb +5 -0
- data/payload/README.md +605 -0
- data/payload/bin/run.cmd +3 -0
- data/payload/bin/run.js +5 -0
- data/payload/dist/base-command.js +60 -0
- data/payload/dist/client.js +77 -0
- data/payload/dist/commands/create.js +26 -0
- data/payload/dist/commands/delete.js +22 -0
- data/payload/dist/commands/get.js +19 -0
- data/payload/dist/commands/list.js +47 -0
- data/payload/dist/commands/login.js +93 -0
- data/payload/dist/commands/logout.js +13 -0
- data/payload/dist/commands/schema.js +58 -0
- data/payload/dist/commands/update.js +27 -0
- data/payload/dist/config.js +57 -0
- data/payload/dist/data.js +33 -0
- data/payload/dist/errors.js +93 -0
- data/payload/dist/hooks/command-not-found.js +22 -0
- data/payload/dist/index.js +1 -0
- data/payload/dist/list.js +7 -0
- data/payload/dist/payload.js +35 -0
- data/payload/dist/record-command.js +51 -0
- data/payload/dist/schema.js +29 -0
- data/payload/dist/store.js +91 -0
- data/payload/dist/suggest.js +29 -0
- data/payload/dist/table.js +40 -0
- data/payload/dist/write-command.js +26 -0
- data/payload/node_modules/@inquirer/ansi/LICENSE +22 -0
- data/payload/node_modules/@inquirer/ansi/README.md +89 -0
- data/payload/node_modules/@inquirer/ansi/dist/commonjs/index.d.ts +14 -0
- data/payload/node_modules/@inquirer/ansi/dist/commonjs/index.js +28 -0
- data/payload/node_modules/@inquirer/ansi/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@inquirer/ansi/dist/esm/index.d.ts +14 -0
- data/payload/node_modules/@inquirer/ansi/dist/esm/index.js +21 -0
- data/payload/node_modules/@inquirer/ansi/dist/esm/package.json +3 -0
- data/payload/node_modules/@inquirer/ansi/package.json +97 -0
- data/payload/node_modules/@inquirer/core/LICENSE +22 -0
- data/payload/node_modules/@inquirer/core/README.md +383 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/index.d.ts +13 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/index.js +46 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/Separator.d.ts +10 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js +28 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.d.ts +4 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js +156 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/errors.d.ts +20 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/errors.js +29 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.d.ts +23 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js +118 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/key.d.ts +12 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/key.js +29 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.d.ts +3 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js +33 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.d.ts +16 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js +124 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.d.ts +7 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js +18 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.d.ts +14 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js +82 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/theme.d.ts +155 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/theme.js +27 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.d.ts +2 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js +14 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.d.ts +3 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js +23 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.d.ts +1 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js +17 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.d.ts +5 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js +38 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.d.ts +6 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js +7 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-state.d.ts +4 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js +23 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/utils.d.ts +13 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/lib/utils.js +32 -0
- data/payload/node_modules/@inquirer/core/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@inquirer/core/dist/esm/index.d.ts +13 -0
- data/payload/node_modules/@inquirer/core/dist/esm/index.js +12 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/Separator.d.ts +10 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/Separator.js +21 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/create-prompt.d.ts +4 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js +117 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/errors.d.ts +20 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/errors.js +21 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/hook-engine.d.ts +23 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js +110 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/key.d.ts +12 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/key.js +19 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/make-theme.d.ts +3 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/make-theme.js +30 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.d.ts +16 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js +121 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.d.ts +7 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js +14 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/screen-manager.d.ts +14 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js +79 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/theme.d.ts +155 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/theme.js +21 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-effect.d.ts +2 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-effect.js +11 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-keypress.d.ts +3 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js +20 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-memo.d.ts +1 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-memo.js +14 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-prefix.d.ts +5 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js +35 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-ref.d.ts +6 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-ref.js +4 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-state.d.ts +4 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/use-state.js +20 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/utils.d.ts +13 -0
- data/payload/node_modules/@inquirer/core/dist/esm/lib/utils.js +25 -0
- data/payload/node_modules/@inquirer/core/dist/esm/package.json +3 -0
- data/payload/node_modules/@inquirer/core/node_modules/mute-stream/LICENSE +15 -0
- data/payload/node_modules/@inquirer/core/node_modules/mute-stream/README.md +68 -0
- data/payload/node_modules/@inquirer/core/node_modules/mute-stream/lib/index.js +142 -0
- data/payload/node_modules/@inquirer/core/node_modules/mute-stream/package.json +54 -0
- data/payload/node_modules/@inquirer/core/package.json +119 -0
- data/payload/node_modules/@inquirer/figures/LICENSE +22 -0
- data/payload/node_modules/@inquirer/figures/dist/commonjs/index.d.ts +275 -0
- data/payload/node_modules/@inquirer/figures/dist/commonjs/index.js +321 -0
- data/payload/node_modules/@inquirer/figures/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@inquirer/figures/dist/esm/index.d.ts +275 -0
- data/payload/node_modules/@inquirer/figures/dist/esm/index.js +314 -0
- data/payload/node_modules/@inquirer/figures/dist/esm/package.json +3 -0
- data/payload/node_modules/@inquirer/figures/package.json +98 -0
- data/payload/node_modules/@inquirer/input/LICENSE +22 -0
- data/payload/node_modules/@inquirer/input/README.md +101 -0
- data/payload/node_modules/@inquirer/input/dist/commonjs/index.d.ts +20 -0
- data/payload/node_modules/@inquirer/input/dist/commonjs/index.js +99 -0
- data/payload/node_modules/@inquirer/input/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@inquirer/input/dist/esm/index.d.ts +20 -0
- data/payload/node_modules/@inquirer/input/dist/esm/index.js +97 -0
- data/payload/node_modules/@inquirer/input/dist/esm/package.json +3 -0
- data/payload/node_modules/@inquirer/input/package.json +110 -0
- data/payload/node_modules/@inquirer/password/LICENSE +22 -0
- data/payload/node_modules/@inquirer/password/README.md +93 -0
- data/payload/node_modules/@inquirer/password/dist/commonjs/index.d.ts +10 -0
- data/payload/node_modules/@inquirer/password/dist/commonjs/index.js +57 -0
- data/payload/node_modules/@inquirer/password/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@inquirer/password/dist/esm/index.d.ts +10 -0
- data/payload/node_modules/@inquirer/password/dist/esm/index.js +55 -0
- data/payload/node_modules/@inquirer/password/dist/esm/package.json +3 -0
- data/payload/node_modules/@inquirer/password/package.json +111 -0
- data/payload/node_modules/@inquirer/type/LICENSE +22 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/index.d.ts +2 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/index.js +18 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/inquirer.d.ts +38 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/inquirer.js +2 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/utils.d.ts +29 -0
- data/payload/node_modules/@inquirer/type/dist/commonjs/utils.js +3 -0
- data/payload/node_modules/@inquirer/type/dist/esm/index.d.ts +2 -0
- data/payload/node_modules/@inquirer/type/dist/esm/index.js +2 -0
- data/payload/node_modules/@inquirer/type/dist/esm/inquirer.d.ts +38 -0
- data/payload/node_modules/@inquirer/type/dist/esm/inquirer.js +1 -0
- data/payload/node_modules/@inquirer/type/dist/esm/package.json +3 -0
- data/payload/node_modules/@inquirer/type/dist/esm/utils.d.ts +29 -0
- data/payload/node_modules/@inquirer/type/dist/esm/utils.js +2 -0
- data/payload/node_modules/@inquirer/type/package.json +106 -0
- data/payload/node_modules/@oclif/core/LICENSE +21 -0
- data/payload/node_modules/@oclif/core/README.md +150 -0
- data/payload/node_modules/@oclif/core/lib/args.d.ts +56 -0
- data/payload/node_modules/@oclif/core/lib/args.js +85 -0
- data/payload/node_modules/@oclif/core/lib/cache.d.ts +27 -0
- data/payload/node_modules/@oclif/core/lib/cache.js +40 -0
- data/payload/node_modules/@oclif/core/lib/command.d.ts +192 -0
- data/payload/node_modules/@oclif/core/lib/command.js +350 -0
- data/payload/node_modules/@oclif/core/lib/config/config.d.ts +135 -0
- data/payload/node_modules/@oclif/core/lib/config/config.js +749 -0
- data/payload/node_modules/@oclif/core/lib/config/index.d.ts +3 -0
- data/payload/node_modules/@oclif/core/lib/config/index.js +9 -0
- data/payload/node_modules/@oclif/core/lib/config/plugin-loader.d.ts +38 -0
- data/payload/node_modules/@oclif/core/lib/config/plugin-loader.js +188 -0
- data/payload/node_modules/@oclif/core/lib/config/plugin.d.ts +51 -0
- data/payload/node_modules/@oclif/core/lib/config/plugin.js +373 -0
- data/payload/node_modules/@oclif/core/lib/config/ts-path.d.ts +9 -0
- data/payload/node_modules/@oclif/core/lib/config/ts-path.js +293 -0
- data/payload/node_modules/@oclif/core/lib/config/util.d.ts +23 -0
- data/payload/node_modules/@oclif/core/lib/config/util.js +54 -0
- data/payload/node_modules/@oclif/core/lib/constraints.d.ts +217 -0
- data/payload/node_modules/@oclif/core/lib/constraints.js +638 -0
- data/payload/node_modules/@oclif/core/lib/errors/error.d.ts +8 -0
- data/payload/node_modules/@oclif/core/lib/errors/error.js +63 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/cli.d.ts +29 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/cli.js +77 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/exit.d.ts +7 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/exit.js +14 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/module-load.d.ts +6 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/module-load.js +12 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/pretty-print.d.ts +9 -0
- data/payload/node_modules/@oclif/core/lib/errors/errors/pretty-print.js +67 -0
- data/payload/node_modules/@oclif/core/lib/errors/exit.d.ts +1 -0
- data/payload/node_modules/@oclif/core/lib/errors/exit.js +7 -0
- data/payload/node_modules/@oclif/core/lib/errors/handle.d.ts +14 -0
- data/payload/node_modules/@oclif/core/lib/errors/handle.js +60 -0
- data/payload/node_modules/@oclif/core/lib/errors/index.d.ts +8 -0
- data/payload/node_modules/@oclif/core/lib/errors/index.js +17 -0
- data/payload/node_modules/@oclif/core/lib/errors/warn.d.ts +8 -0
- data/payload/node_modules/@oclif/core/lib/errors/warn.js +40 -0
- data/payload/node_modules/@oclif/core/lib/execute.d.ts +44 -0
- data/payload/node_modules/@oclif/core/lib/execute.js +61 -0
- data/payload/node_modules/@oclif/core/lib/flags.d.ts +181 -0
- data/payload/node_modules/@oclif/core/lib/flags.js +129 -0
- data/payload/node_modules/@oclif/core/lib/flush.d.ts +1 -0
- data/payload/node_modules/@oclif/core/lib/flush.js +26 -0
- data/payload/node_modules/@oclif/core/lib/help/command.d.ts +33 -0
- data/payload/node_modules/@oclif/core/lib/help/command.js +352 -0
- data/payload/node_modules/@oclif/core/lib/help/docopts.d.ts +69 -0
- data/payload/node_modules/@oclif/core/lib/help/docopts.js +198 -0
- data/payload/node_modules/@oclif/core/lib/help/formatter.d.ts +96 -0
- data/payload/node_modules/@oclif/core/lib/help/formatter.js +194 -0
- data/payload/node_modules/@oclif/core/lib/help/index.d.ts +46 -0
- data/payload/node_modules/@oclif/core/lib/help/index.js +345 -0
- data/payload/node_modules/@oclif/core/lib/help/root.d.ts +11 -0
- data/payload/node_modules/@oclif/core/lib/help/root.js +47 -0
- data/payload/node_modules/@oclif/core/lib/help/util.d.ts +7 -0
- data/payload/node_modules/@oclif/core/lib/help/util.js +99 -0
- data/payload/node_modules/@oclif/core/lib/index.d.ts +20 -0
- data/payload/node_modules/@oclif/core/lib/index.js +101 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/alphabet.d.ts +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/alphabet.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/args.d.ts +22 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/args.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/config.d.ts +139 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/config.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/errors.d.ts +27 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/errors.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/flags.d.ts +34 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/flags.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/help.d.ts +58 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/help.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/hooks.d.ts +185 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/hooks.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/index.d.ts +16 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/index.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/logger.d.ts +9 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/logger.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/manifest.d.ts +7 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/manifest.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/parser.d.ts +520 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/parser.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/pjson.d.ts +314 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/pjson.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/plugin.d.ts +104 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/plugin.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/s3-manifest.d.ts +14 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/s3-manifest.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/theme.d.ts +32 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/theme.js +44 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/topic.d.ts +5 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/topic.js +2 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/ts-config.d.ts +23 -0
- data/payload/node_modules/@oclif/core/lib/interfaces/ts-config.js +2 -0
- data/payload/node_modules/@oclif/core/lib/logger.d.ts +14 -0
- data/payload/node_modules/@oclif/core/lib/logger.js +89 -0
- data/payload/node_modules/@oclif/core/lib/main.d.ts +4 -0
- data/payload/node_modules/@oclif/core/lib/main.js +106 -0
- data/payload/node_modules/@oclif/core/lib/module-loader.d.ts +71 -0
- data/payload/node_modules/@oclif/core/lib/module-loader.js +206 -0
- data/payload/node_modules/@oclif/core/lib/parser/errors.d.ts +58 -0
- data/payload/node_modules/@oclif/core/lib/parser/errors.js +117 -0
- data/payload/node_modules/@oclif/core/lib/parser/help.d.ts +3 -0
- data/payload/node_modules/@oclif/core/lib/parser/help.js +29 -0
- data/payload/node_modules/@oclif/core/lib/parser/index.d.ts +5 -0
- data/payload/node_modules/@oclif/core/lib/parser/index.js +25 -0
- data/payload/node_modules/@oclif/core/lib/parser/parse.d.ts +37 -0
- data/payload/node_modules/@oclif/core/lib/parser/parse.js +545 -0
- data/payload/node_modules/@oclif/core/lib/parser/validate.d.ts +5 -0
- data/payload/node_modules/@oclif/core/lib/parser/validate.js +287 -0
- data/payload/node_modules/@oclif/core/lib/performance.d.ts +73 -0
- data/payload/node_modules/@oclif/core/lib/performance.js +227 -0
- data/payload/node_modules/@oclif/core/lib/screen.d.ts +2 -0
- data/payload/node_modules/@oclif/core/lib/screen.js +20 -0
- data/payload/node_modules/@oclif/core/lib/settings.d.ts +36 -0
- data/payload/node_modules/@oclif/core/lib/settings.js +7 -0
- data/payload/node_modules/@oclif/core/lib/symbols.d.ts +1 -0
- data/payload/node_modules/@oclif/core/lib/symbols.js +4 -0
- data/payload/node_modules/@oclif/core/lib/util/aggregate-flags.d.ts +2 -0
- data/payload/node_modules/@oclif/core/lib/util/aggregate-flags.js +12 -0
- data/payload/node_modules/@oclif/core/lib/util/cache-command.d.ts +3 -0
- data/payload/node_modules/@oclif/core/lib/util/cache-command.js +120 -0
- data/payload/node_modules/@oclif/core/lib/util/cache-default-value.d.ts +2 -0
- data/payload/node_modules/@oclif/core/lib/util/cache-default-value.js +28 -0
- data/payload/node_modules/@oclif/core/lib/util/determine-priority.d.ts +18 -0
- data/payload/node_modules/@oclif/core/lib/util/determine-priority.js +51 -0
- data/payload/node_modules/@oclif/core/lib/util/ensure-arg-object.d.ts +12 -0
- data/payload/node_modules/@oclif/core/lib/util/ensure-arg-object.js +13 -0
- data/payload/node_modules/@oclif/core/lib/util/find-root.d.ts +16 -0
- data/payload/node_modules/@oclif/core/lib/util/find-root.js +185 -0
- data/payload/node_modules/@oclif/core/lib/util/fs.d.ts +35 -0
- data/payload/node_modules/@oclif/core/lib/util/fs.js +93 -0
- data/payload/node_modules/@oclif/core/lib/util/ids.d.ts +3 -0
- data/payload/node_modules/@oclif/core/lib/util/ids.js +11 -0
- data/payload/node_modules/@oclif/core/lib/util/os.d.ts +19 -0
- data/payload/node_modules/@oclif/core/lib/util/os.js +58 -0
- data/payload/node_modules/@oclif/core/lib/util/read-pjson.d.ts +7 -0
- data/payload/node_modules/@oclif/core/lib/util/read-pjson.js +55 -0
- data/payload/node_modules/@oclif/core/lib/util/read-tsconfig.d.ts +2 -0
- data/payload/node_modules/@oclif/core/lib/util/read-tsconfig.js +77 -0
- data/payload/node_modules/@oclif/core/lib/util/util.d.ts +23 -0
- data/payload/node_modules/@oclif/core/lib/util/util.js +103 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/base.d.ts +34 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/base.js +183 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/simple.d.ts +11 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/simple.js +47 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/spinner.d.ts +19 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/spinner.js +88 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/types.d.ts +5 -0
- data/payload/node_modules/@oclif/core/lib/ux/action/types.js +2 -0
- data/payload/node_modules/@oclif/core/lib/ux/colorize-json.d.ts +29 -0
- data/payload/node_modules/@oclif/core/lib/ux/colorize-json.js +100 -0
- data/payload/node_modules/@oclif/core/lib/ux/index.d.ts +70 -0
- data/payload/node_modules/@oclif/core/lib/ux/index.js +89 -0
- data/payload/node_modules/@oclif/core/lib/ux/list.d.ts +3 -0
- data/payload/node_modules/@oclif/core/lib/ux/list.js +28 -0
- data/payload/node_modules/@oclif/core/lib/ux/supports-color.d.ts +1 -0
- data/payload/node_modules/@oclif/core/lib/ux/supports-color.js +7 -0
- data/payload/node_modules/@oclif/core/lib/ux/theme.d.ts +9 -0
- data/payload/node_modules/@oclif/core/lib/ux/theme.js +45 -0
- data/payload/node_modules/@oclif/core/lib/ux/write.d.ts +2 -0
- data/payload/node_modules/@oclif/core/lib/ux/write.js +34 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/LICENSE.md +23 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/README.md +57 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/esm/index.js +54 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/dist/esm/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/balanced-match/package.json +68 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/LICENSE +23 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/README.md +105 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/commonjs/index.d.ts +8 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/esm/index.d.ts +8 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/esm/index.js +285 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/dist/esm/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/brace-expansion/package.json +64 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/LICENSE +202 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/README.md +389 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/bin/cli.js +218 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/ejs.js +1820 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/ejs.min.js +1 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/jakefile.js +206 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/cjs/ejs.js +853 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/cjs/package.json +1 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/cjs/parseargs.js +122 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/cjs/utils.js +242 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/esm/ejs.js +936 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/esm/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/esm/parseargs.js +136 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/lib/esm/utils.js +259 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/package.json +49 -0
- data/payload/node_modules/@oclif/core/node_modules/ejs/usage.txt +24 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/LICENSE.md +55 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/README.md +528 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/ast.js +841 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/escape.js +26 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/index.d.ts +174 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/index.js +1114 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/index.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/package.json +3 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/unescape.js +34 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- data/payload/node_modules/@oclif/core/node_modules/minimatch/package.json +73 -0
- data/payload/node_modules/@oclif/core/node_modules/wrap-ansi/index.js +216 -0
- data/payload/node_modules/@oclif/core/node_modules/wrap-ansi/license +9 -0
- data/payload/node_modules/@oclif/core/node_modules/wrap-ansi/package.json +62 -0
- data/payload/node_modules/@oclif/core/node_modules/wrap-ansi/readme.md +91 -0
- data/payload/node_modules/@oclif/core/package.json +135 -0
- data/payload/node_modules/@oclif/plugin-help/LICENSE +21 -0
- data/payload/node_modules/@oclif/plugin-help/README.md +35 -0
- data/payload/node_modules/@oclif/plugin-help/lib/commands/help.d.ts +12 -0
- data/payload/node_modules/@oclif/plugin-help/lib/commands/help.js +20 -0
- data/payload/node_modules/@oclif/plugin-help/lib/index.d.ts +4 -0
- data/payload/node_modules/@oclif/plugin-help/lib/index.js +4 -0
- data/payload/node_modules/@oclif/plugin-help/oclif.manifest.json +43 -0
- data/payload/node_modules/@oclif/plugin-help/package.json +68 -0
- data/payload/node_modules/ansi-escapes/index.d.ts +248 -0
- data/payload/node_modules/ansi-escapes/index.js +157 -0
- data/payload/node_modules/ansi-escapes/license +9 -0
- data/payload/node_modules/ansi-escapes/package.json +57 -0
- data/payload/node_modules/ansi-escapes/readme.md +245 -0
- data/payload/node_modules/ansi-regex/index.d.ts +37 -0
- data/payload/node_modules/ansi-regex/index.js +10 -0
- data/payload/node_modules/ansi-regex/license +9 -0
- data/payload/node_modules/ansi-regex/package.json +55 -0
- data/payload/node_modules/ansi-regex/readme.md +78 -0
- data/payload/node_modules/ansi-styles/index.d.ts +345 -0
- data/payload/node_modules/ansi-styles/index.js +163 -0
- data/payload/node_modules/ansi-styles/license +9 -0
- data/payload/node_modules/ansi-styles/package.json +56 -0
- data/payload/node_modules/ansi-styles/readme.md +152 -0
- data/payload/node_modules/ansis/LICENSE +15 -0
- data/payload/node_modules/ansis/README.md +3 -0
- data/payload/node_modules/ansis/index.d.ts +1 -0
- data/payload/node_modules/ansis/index.js +1 -0
- data/payload/node_modules/ansis/index.mjs +1 -0
- data/payload/node_modules/ansis/package.json +20 -0
- data/payload/node_modules/clean-stack/index.d.ts +56 -0
- data/payload/node_modules/clean-stack/index.js +45 -0
- data/payload/node_modules/clean-stack/license +9 -0
- data/payload/node_modules/clean-stack/package.json +42 -0
- data/payload/node_modules/clean-stack/readme.md +77 -0
- data/payload/node_modules/cli-spinners/index.d.ts +128 -0
- data/payload/node_modules/cli-spinners/index.js +15 -0
- data/payload/node_modules/cli-spinners/license +9 -0
- data/payload/node_modules/cli-spinners/package.json +50 -0
- data/payload/node_modules/cli-spinners/readme.md +54 -0
- data/payload/node_modules/cli-spinners/spinners.json +1622 -0
- data/payload/node_modules/cli-width/LICENSE +13 -0
- data/payload/node_modules/cli-width/README.md +71 -0
- data/payload/node_modules/cli-width/index.d.ts +13 -0
- data/payload/node_modules/cli-width/index.js +49 -0
- data/payload/node_modules/cli-width/package.json +40 -0
- data/payload/node_modules/color-convert/CHANGELOG.md +54 -0
- data/payload/node_modules/color-convert/LICENSE +21 -0
- data/payload/node_modules/color-convert/README.md +68 -0
- data/payload/node_modules/color-convert/conversions.js +839 -0
- data/payload/node_modules/color-convert/index.js +81 -0
- data/payload/node_modules/color-convert/package.json +48 -0
- data/payload/node_modules/color-convert/route.js +97 -0
- data/payload/node_modules/color-name/LICENSE +8 -0
- data/payload/node_modules/color-name/README.md +11 -0
- data/payload/node_modules/color-name/index.js +152 -0
- data/payload/node_modules/color-name/package.json +28 -0
- data/payload/node_modules/debug/LICENSE +20 -0
- data/payload/node_modules/debug/README.md +481 -0
- data/payload/node_modules/debug/package.json +64 -0
- data/payload/node_modules/debug/src/browser.js +272 -0
- data/payload/node_modules/debug/src/common.js +292 -0
- data/payload/node_modules/debug/src/index.js +10 -0
- data/payload/node_modules/debug/src/node.js +263 -0
- data/payload/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- data/payload/node_modules/emoji-regex/README.md +73 -0
- data/payload/node_modules/emoji-regex/es2015/index.js +6 -0
- data/payload/node_modules/emoji-regex/es2015/text.js +6 -0
- data/payload/node_modules/emoji-regex/index.d.ts +23 -0
- data/payload/node_modules/emoji-regex/index.js +6 -0
- data/payload/node_modules/emoji-regex/package.json +50 -0
- data/payload/node_modules/emoji-regex/text.js +6 -0
- data/payload/node_modules/escape-string-regexp/index.d.ts +18 -0
- data/payload/node_modules/escape-string-regexp/index.js +13 -0
- data/payload/node_modules/escape-string-regexp/license +9 -0
- data/payload/node_modules/escape-string-regexp/package.json +38 -0
- data/payload/node_modules/escape-string-regexp/readme.md +34 -0
- data/payload/node_modules/fdir/LICENSE +7 -0
- data/payload/node_modules/fdir/README.md +91 -0
- data/payload/node_modules/fdir/dist/index.cjs +588 -0
- data/payload/node_modules/fdir/dist/index.d.cts +155 -0
- data/payload/node_modules/fdir/dist/index.d.mts +155 -0
- data/payload/node_modules/fdir/dist/index.mjs +570 -0
- data/payload/node_modules/fdir/package.json +103 -0
- data/payload/node_modules/get-package-type/CHANGELOG.md +10 -0
- data/payload/node_modules/get-package-type/LICENSE +21 -0
- data/payload/node_modules/get-package-type/README.md +32 -0
- data/payload/node_modules/get-package-type/async.cjs +52 -0
- data/payload/node_modules/get-package-type/cache.cjs +3 -0
- data/payload/node_modules/get-package-type/index.cjs +7 -0
- data/payload/node_modules/get-package-type/is-node-modules.cjs +15 -0
- data/payload/node_modules/get-package-type/package.json +35 -0
- data/payload/node_modules/get-package-type/sync.cjs +42 -0
- data/payload/node_modules/has-flag/index.d.ts +39 -0
- data/payload/node_modules/has-flag/index.js +8 -0
- data/payload/node_modules/has-flag/license +9 -0
- data/payload/node_modules/has-flag/package.json +46 -0
- data/payload/node_modules/has-flag/readme.md +89 -0
- data/payload/node_modules/indent-string/index.d.ts +42 -0
- data/payload/node_modules/indent-string/index.js +35 -0
- data/payload/node_modules/indent-string/license +9 -0
- data/payload/node_modules/indent-string/package.json +37 -0
- data/payload/node_modules/indent-string/readme.md +70 -0
- data/payload/node_modules/is-docker/cli.js +5 -0
- data/payload/node_modules/is-docker/index.d.ts +13 -0
- data/payload/node_modules/is-docker/index.js +29 -0
- data/payload/node_modules/is-docker/license +9 -0
- data/payload/node_modules/is-docker/package.json +44 -0
- data/payload/node_modules/is-docker/readme.md +27 -0
- data/payload/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- data/payload/node_modules/is-fullwidth-code-point/index.js +50 -0
- data/payload/node_modules/is-fullwidth-code-point/license +9 -0
- data/payload/node_modules/is-fullwidth-code-point/package.json +42 -0
- data/payload/node_modules/is-fullwidth-code-point/readme.md +39 -0
- data/payload/node_modules/is-inside-container/cli.js +5 -0
- data/payload/node_modules/is-inside-container/index.d.ts +13 -0
- data/payload/node_modules/is-inside-container/index.js +23 -0
- data/payload/node_modules/is-inside-container/license +9 -0
- data/payload/node_modules/is-inside-container/package.json +51 -0
- data/payload/node_modules/is-inside-container/readme.md +36 -0
- data/payload/node_modules/is-wsl/index.d.ts +15 -0
- data/payload/node_modules/is-wsl/index.js +36 -0
- data/payload/node_modules/is-wsl/license +9 -0
- data/payload/node_modules/is-wsl/package.json +58 -0
- data/payload/node_modules/is-wsl/readme.md +21 -0
- data/payload/node_modules/lilconfig/LICENSE +21 -0
- data/payload/node_modules/lilconfig/package.json +42 -0
- data/payload/node_modules/lilconfig/readme.md +98 -0
- data/payload/node_modules/lilconfig/src/index.d.ts +54 -0
- data/payload/node_modules/lilconfig/src/index.js +460 -0
- data/payload/node_modules/ms/index.js +162 -0
- data/payload/node_modules/ms/license.md +21 -0
- data/payload/node_modules/ms/package.json +38 -0
- data/payload/node_modules/ms/readme.md +59 -0
- data/payload/node_modules/picomatch/LICENSE +21 -0
- data/payload/node_modules/picomatch/README.md +743 -0
- data/payload/node_modules/picomatch/index.js +17 -0
- data/payload/node_modules/picomatch/lib/constants.js +184 -0
- data/payload/node_modules/picomatch/lib/parse.js +1425 -0
- data/payload/node_modules/picomatch/lib/picomatch.js +361 -0
- data/payload/node_modules/picomatch/lib/scan.js +403 -0
- data/payload/node_modules/picomatch/lib/utils.js +72 -0
- data/payload/node_modules/picomatch/package.json +83 -0
- data/payload/node_modules/picomatch/posix.js +3 -0
- data/payload/node_modules/powershell-utils/index.d.ts +122 -0
- data/payload/node_modules/powershell-utils/index.js +58 -0
- data/payload/node_modules/powershell-utils/license +9 -0
- data/payload/node_modules/powershell-utils/package.json +47 -0
- data/payload/node_modules/powershell-utils/readme.md +153 -0
- data/payload/node_modules/semver/LICENSE +15 -0
- data/payload/node_modules/semver/README.md +680 -0
- data/payload/node_modules/semver/bin/semver.js +195 -0
- data/payload/node_modules/semver/classes/comparator.js +143 -0
- data/payload/node_modules/semver/classes/index.js +7 -0
- data/payload/node_modules/semver/classes/range.js +577 -0
- data/payload/node_modules/semver/classes/semver.js +350 -0
- data/payload/node_modules/semver/functions/clean.js +8 -0
- data/payload/node_modules/semver/functions/cmp.js +54 -0
- data/payload/node_modules/semver/functions/coerce.js +62 -0
- data/payload/node_modules/semver/functions/compare-build.js +9 -0
- data/payload/node_modules/semver/functions/compare-loose.js +5 -0
- data/payload/node_modules/semver/functions/compare.js +7 -0
- data/payload/node_modules/semver/functions/diff.js +60 -0
- data/payload/node_modules/semver/functions/eq.js +5 -0
- data/payload/node_modules/semver/functions/gt.js +5 -0
- data/payload/node_modules/semver/functions/gte.js +5 -0
- data/payload/node_modules/semver/functions/inc.js +21 -0
- data/payload/node_modules/semver/functions/lt.js +5 -0
- data/payload/node_modules/semver/functions/lte.js +5 -0
- data/payload/node_modules/semver/functions/major.js +5 -0
- data/payload/node_modules/semver/functions/minor.js +5 -0
- data/payload/node_modules/semver/functions/neq.js +5 -0
- data/payload/node_modules/semver/functions/parse.js +18 -0
- data/payload/node_modules/semver/functions/patch.js +5 -0
- data/payload/node_modules/semver/functions/prerelease.js +8 -0
- data/payload/node_modules/semver/functions/rcompare.js +5 -0
- data/payload/node_modules/semver/functions/rsort.js +5 -0
- data/payload/node_modules/semver/functions/satisfies.js +12 -0
- data/payload/node_modules/semver/functions/sort.js +5 -0
- data/payload/node_modules/semver/functions/truncate.js +48 -0
- data/payload/node_modules/semver/functions/valid.js +8 -0
- data/payload/node_modules/semver/index.js +93 -0
- data/payload/node_modules/semver/internal/constants.js +37 -0
- data/payload/node_modules/semver/internal/debug.js +11 -0
- data/payload/node_modules/semver/internal/identifiers.js +29 -0
- data/payload/node_modules/semver/internal/lrucache.js +42 -0
- data/payload/node_modules/semver/internal/parse-options.js +17 -0
- data/payload/node_modules/semver/internal/re.js +223 -0
- data/payload/node_modules/semver/package.json +78 -0
- data/payload/node_modules/semver/preload.js +4 -0
- data/payload/node_modules/semver/range.bnf +17 -0
- data/payload/node_modules/semver/ranges/gtr.js +6 -0
- data/payload/node_modules/semver/ranges/intersects.js +9 -0
- data/payload/node_modules/semver/ranges/ltr.js +6 -0
- data/payload/node_modules/semver/ranges/max-satisfying.js +27 -0
- data/payload/node_modules/semver/ranges/min-satisfying.js +26 -0
- data/payload/node_modules/semver/ranges/min-version.js +63 -0
- data/payload/node_modules/semver/ranges/outside.js +82 -0
- data/payload/node_modules/semver/ranges/simplify.js +49 -0
- data/payload/node_modules/semver/ranges/subset.js +249 -0
- data/payload/node_modules/semver/ranges/to-comparators.js +10 -0
- data/payload/node_modules/semver/ranges/valid.js +13 -0
- data/payload/node_modules/signal-exit/LICENSE.txt +16 -0
- data/payload/node_modules/signal-exit/README.md +74 -0
- data/payload/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- data/payload/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- data/payload/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- data/payload/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- data/payload/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- data/payload/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- data/payload/node_modules/signal-exit/dist/cjs/index.js +279 -0
- data/payload/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- data/payload/node_modules/signal-exit/dist/cjs/package.json +3 -0
- data/payload/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- data/payload/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- data/payload/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- data/payload/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- data/payload/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- data/payload/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- data/payload/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- data/payload/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- data/payload/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- data/payload/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- data/payload/node_modules/signal-exit/dist/mjs/index.js +275 -0
- data/payload/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- data/payload/node_modules/signal-exit/dist/mjs/package.json +3 -0
- data/payload/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- data/payload/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- data/payload/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- data/payload/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- data/payload/node_modules/signal-exit/package.json +106 -0
- data/payload/node_modules/string-width/index.d.ts +29 -0
- data/payload/node_modules/string-width/index.js +47 -0
- data/payload/node_modules/string-width/license +9 -0
- data/payload/node_modules/string-width/package.json +56 -0
- data/payload/node_modules/string-width/readme.md +50 -0
- data/payload/node_modules/strip-ansi/index.d.ts +17 -0
- data/payload/node_modules/strip-ansi/index.js +4 -0
- data/payload/node_modules/strip-ansi/license +9 -0
- data/payload/node_modules/strip-ansi/package.json +54 -0
- data/payload/node_modules/strip-ansi/readme.md +46 -0
- data/payload/node_modules/supports-color/browser.js +24 -0
- data/payload/node_modules/supports-color/index.js +152 -0
- data/payload/node_modules/supports-color/license +9 -0
- data/payload/node_modules/supports-color/package.json +58 -0
- data/payload/node_modules/supports-color/readme.md +77 -0
- data/payload/node_modules/tinyglobby/LICENSE +21 -0
- data/payload/node_modules/tinyglobby/README.md +25 -0
- data/payload/node_modules/tinyglobby/dist/index.cjs +335 -0
- data/payload/node_modules/tinyglobby/dist/index.d.cts +148 -0
- data/payload/node_modules/tinyglobby/dist/index.d.mts +148 -0
- data/payload/node_modules/tinyglobby/dist/index.mjs +307 -0
- data/payload/node_modules/tinyglobby/package.json +70 -0
- data/payload/node_modules/type-fest/base.d.ts +39 -0
- data/payload/node_modules/type-fest/index.d.ts +2 -0
- data/payload/node_modules/type-fest/license +9 -0
- data/payload/node_modules/type-fest/package.json +58 -0
- data/payload/node_modules/type-fest/readme.md +760 -0
- data/payload/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- data/payload/node_modules/type-fest/source/asyncify.d.ts +31 -0
- data/payload/node_modules/type-fest/source/basic.d.ts +51 -0
- data/payload/node_modules/type-fest/source/conditional-except.d.ts +43 -0
- data/payload/node_modules/type-fest/source/conditional-keys.d.ts +43 -0
- data/payload/node_modules/type-fest/source/conditional-pick.d.ts +42 -0
- data/payload/node_modules/type-fest/source/entries.d.ts +57 -0
- data/payload/node_modules/type-fest/source/entry.d.ts +60 -0
- data/payload/node_modules/type-fest/source/except.d.ts +22 -0
- data/payload/node_modules/type-fest/source/fixed-length-array.d.ts +38 -0
- data/payload/node_modules/type-fest/source/iterable-element.d.ts +46 -0
- data/payload/node_modules/type-fest/source/literal-union.d.ts +33 -0
- data/payload/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
- data/payload/node_modules/type-fest/source/merge.d.ts +25 -0
- data/payload/node_modules/type-fest/source/mutable.d.ts +38 -0
- data/payload/node_modules/type-fest/source/opaque.d.ts +65 -0
- data/payload/node_modules/type-fest/source/package-json.d.ts +611 -0
- data/payload/node_modules/type-fest/source/partial-deep.d.ts +72 -0
- data/payload/node_modules/type-fest/source/promisable.d.ts +23 -0
- data/payload/node_modules/type-fest/source/promise-value.d.ts +27 -0
- data/payload/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
- data/payload/node_modules/type-fest/source/require-at-least-one.d.ts +33 -0
- data/payload/node_modules/type-fest/source/require-exactly-one.d.ts +35 -0
- data/payload/node_modules/type-fest/source/set-optional.d.ts +33 -0
- data/payload/node_modules/type-fest/source/set-required.d.ts +33 -0
- data/payload/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- data/payload/node_modules/type-fest/source/simplify.d.ts +4 -0
- data/payload/node_modules/type-fest/source/stringified.d.ts +21 -0
- data/payload/node_modules/type-fest/source/tsconfig-json.d.ts +870 -0
- data/payload/node_modules/type-fest/source/typed-array.d.ts +15 -0
- data/payload/node_modules/type-fest/source/union-to-intersection.d.ts +58 -0
- data/payload/node_modules/type-fest/source/utilities.d.ts +5 -0
- data/payload/node_modules/type-fest/source/value-of.d.ts +40 -0
- data/payload/node_modules/type-fest/ts41/camel-case.d.ts +64 -0
- data/payload/node_modules/type-fest/ts41/delimiter-case.d.ts +85 -0
- data/payload/node_modules/type-fest/ts41/get.d.ts +131 -0
- data/payload/node_modules/type-fest/ts41/index.d.ts +10 -0
- data/payload/node_modules/type-fest/ts41/kebab-case.d.ts +36 -0
- data/payload/node_modules/type-fest/ts41/pascal-case.d.ts +36 -0
- data/payload/node_modules/type-fest/ts41/snake-case.d.ts +35 -0
- data/payload/node_modules/type-fest/ts41/utilities.d.ts +8 -0
- data/payload/node_modules/undici-types/LICENSE +21 -0
- data/payload/node_modules/undici-types/README.md +6 -0
- data/payload/node_modules/undici-types/agent.d.ts +31 -0
- data/payload/node_modules/undici-types/api.d.ts +43 -0
- data/payload/node_modules/undici-types/balanced-pool.d.ts +29 -0
- data/payload/node_modules/undici-types/cache.d.ts +36 -0
- data/payload/node_modules/undici-types/client.d.ts +108 -0
- data/payload/node_modules/undici-types/connector.d.ts +34 -0
- data/payload/node_modules/undici-types/content-type.d.ts +21 -0
- data/payload/node_modules/undici-types/cookies.d.ts +28 -0
- data/payload/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- data/payload/node_modules/undici-types/dispatcher.d.ts +256 -0
- data/payload/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- data/payload/node_modules/undici-types/errors.d.ts +149 -0
- data/payload/node_modules/undici-types/eventsource.d.ts +61 -0
- data/payload/node_modules/undici-types/fetch.d.ts +209 -0
- data/payload/node_modules/undici-types/file.d.ts +39 -0
- data/payload/node_modules/undici-types/filereader.d.ts +54 -0
- data/payload/node_modules/undici-types/formdata.d.ts +108 -0
- data/payload/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- data/payload/node_modules/undici-types/global-origin.d.ts +7 -0
- data/payload/node_modules/undici-types/handlers.d.ts +15 -0
- data/payload/node_modules/undici-types/header.d.ts +4 -0
- data/payload/node_modules/undici-types/index.d.ts +71 -0
- data/payload/node_modules/undici-types/interceptors.d.ts +17 -0
- data/payload/node_modules/undici-types/mock-agent.d.ts +50 -0
- data/payload/node_modules/undici-types/mock-client.d.ts +25 -0
- data/payload/node_modules/undici-types/mock-errors.d.ts +12 -0
- data/payload/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- data/payload/node_modules/undici-types/mock-pool.d.ts +25 -0
- data/payload/node_modules/undici-types/package.json +55 -0
- data/payload/node_modules/undici-types/patch.d.ts +33 -0
- data/payload/node_modules/undici-types/pool-stats.d.ts +19 -0
- data/payload/node_modules/undici-types/pool.d.ts +39 -0
- data/payload/node_modules/undici-types/proxy-agent.d.ts +28 -0
- data/payload/node_modules/undici-types/readable.d.ts +65 -0
- data/payload/node_modules/undici-types/retry-agent.d.ts +8 -0
- data/payload/node_modules/undici-types/retry-handler.d.ts +116 -0
- data/payload/node_modules/undici-types/util.d.ts +18 -0
- data/payload/node_modules/undici-types/webidl.d.ts +228 -0
- data/payload/node_modules/undici-types/websocket.d.ts +150 -0
- data/payload/node_modules/widest-line/index.d.ts +21 -0
- data/payload/node_modules/widest-line/index.js +16 -0
- data/payload/node_modules/widest-line/license +9 -0
- data/payload/node_modules/widest-line/package.json +54 -0
- data/payload/node_modules/widest-line/readme.md +34 -0
- data/payload/node_modules/wordwrap/LICENSE +18 -0
- data/payload/node_modules/wordwrap/README.markdown +70 -0
- data/payload/node_modules/wordwrap/example/center.js +10 -0
- data/payload/node_modules/wordwrap/example/meat.js +3 -0
- data/payload/node_modules/wordwrap/index.js +76 -0
- data/payload/node_modules/wordwrap/package.json +34 -0
- data/payload/node_modules/wordwrap/test/break.js +32 -0
- data/payload/node_modules/wordwrap/test/idleness.txt +63 -0
- data/payload/node_modules/wordwrap/test/wrap.js +33 -0
- data/payload/node_modules/wrap-ansi/index.js +186 -0
- data/payload/node_modules/wrap-ansi/license +9 -0
- data/payload/node_modules/wrap-ansi/package.json +61 -0
- data/payload/node_modules/wrap-ansi/readme.md +97 -0
- data/payload/node_modules/wsl-utils/index.d.ts +180 -0
- data/payload/node_modules/wsl-utils/index.js +140 -0
- data/payload/node_modules/wsl-utils/license +9 -0
- data/payload/node_modules/wsl-utils/package.json +48 -0
- data/payload/node_modules/wsl-utils/readme.md +223 -0
- data/payload/node_modules/wsl-utils/utilities.js +19 -0
- data/payload/node_modules/yoctocolors-cjs/index.d.ts +94 -0
- data/payload/node_modules/yoctocolors-cjs/index.js +98 -0
- data/payload/node_modules/yoctocolors-cjs/license +9 -0
- data/payload/node_modules/yoctocolors-cjs/package.json +67 -0
- data/payload/node_modules/yoctocolors-cjs/readme.md +130 -0
- data/payload/oclif.manifest.json +793 -0
- data/payload/package.json +80 -0
- metadata +809 -35
- data/Gemfile +0 -19
- data/Gemfile.lock +0 -78
- data/LICENSE.md +0 -7
- data/bin/avo +0 -9
- data/bin/rspec +0 -4
- data/lib/avo_cli/cli.rb +0 -60
- data/lib/avo_cli/rules/base.rb +0 -31
- data/lib/avo_cli/rules/fields_as_class_methods.rb +0 -14
- data/lib/avo_cli/scanner.rb +0 -42
- data/lib/avo_cli/scanners/base.rb +0 -13
- data/lib/avo_cli/scanners/resource_scanner.rb +0 -27
- data/lib/avo_cli/version.rb +0 -3
- data/lib/avo_cli.rb +0 -23
- data/lib/support.rb +0 -52
- data/linter.png +0 -0
- data/readme.md +0 -40
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Config } from './config';
|
|
2
|
+
import { PrettyPrintableError } from './errors';
|
|
3
|
+
import { LoadOptions } from './interfaces/config';
|
|
4
|
+
import { CommandError } from './interfaces/errors';
|
|
5
|
+
import { ArgInput, ArgOutput, ArgProps, BooleanFlagProps, Constraint, Deprecation, FlagInput, FlagOutput, Arg as IArg, Flag as IFlag, Input, OptionFlagProps, ParserOutput } from './interfaces/parser';
|
|
6
|
+
import { Plugin } from './interfaces/plugin';
|
|
7
|
+
/**
|
|
8
|
+
* An abstract class which acts as the base for each command
|
|
9
|
+
* in your project.
|
|
10
|
+
*/
|
|
11
|
+
export declare abstract class Command {
|
|
12
|
+
argv: string[];
|
|
13
|
+
config: Config;
|
|
14
|
+
private static readonly _base;
|
|
15
|
+
/** An array of aliases for this command. */
|
|
16
|
+
static aliases: string[];
|
|
17
|
+
/** An order-dependent object of arguments for the command */
|
|
18
|
+
static args: ArgInput;
|
|
19
|
+
static baseFlags: FlagInput;
|
|
20
|
+
static constraints: Constraint[];
|
|
21
|
+
/**
|
|
22
|
+
* Emit deprecation warning when a command alias is used
|
|
23
|
+
*/
|
|
24
|
+
static deprecateAliases?: boolean;
|
|
25
|
+
static deprecationOptions?: Deprecation;
|
|
26
|
+
/**
|
|
27
|
+
* A full description of how to use the command.
|
|
28
|
+
*
|
|
29
|
+
* If no summary, the first line of the description will be used as the summary.
|
|
30
|
+
*/
|
|
31
|
+
static description: string | undefined;
|
|
32
|
+
static enableJsonFlag: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* An array of examples to show at the end of the command's help.
|
|
35
|
+
*
|
|
36
|
+
* IF only a string is provided, it will try to look for a line that starts
|
|
37
|
+
* with the cmd.bin as the example command and the rest as the description.
|
|
38
|
+
* If found, the command will be formatted appropriately.
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
* EXAMPLES:
|
|
42
|
+
* A description of a particular use case.
|
|
43
|
+
*
|
|
44
|
+
* $ <%= config.bin => command flags
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
static examples: Command.Example[];
|
|
48
|
+
/** A hash of flags for the command */
|
|
49
|
+
static flags: FlagInput;
|
|
50
|
+
static hasDynamicHelp: boolean;
|
|
51
|
+
static help: string | undefined;
|
|
52
|
+
/** Hide the command from help */
|
|
53
|
+
static hidden: boolean;
|
|
54
|
+
/** An array of aliases for this command that are hidden from help. */
|
|
55
|
+
static hiddenAliases: string[];
|
|
56
|
+
/** A command ID, used mostly in error or verbose reporting. */
|
|
57
|
+
static id: string;
|
|
58
|
+
static plugin: Plugin | undefined;
|
|
59
|
+
static readonly pluginAlias?: string;
|
|
60
|
+
static readonly pluginName?: string;
|
|
61
|
+
static readonly pluginType?: string;
|
|
62
|
+
/** Mark the command as a given state (e.g. beta or deprecated) in help */
|
|
63
|
+
static state?: 'beta' | 'deprecated' | string;
|
|
64
|
+
/** When set to false, allows a variable amount of arguments */
|
|
65
|
+
static strict: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The tweet-sized description for your class, used in a parent-commands
|
|
68
|
+
* sub-command listing and as the header for the command help.
|
|
69
|
+
*/
|
|
70
|
+
static summary?: string;
|
|
71
|
+
/**
|
|
72
|
+
* An override string (or strings) for the default usage documentation.
|
|
73
|
+
*/
|
|
74
|
+
static usage: string | string[] | undefined;
|
|
75
|
+
protected debug: (...args: any[]) => void;
|
|
76
|
+
id: string | undefined;
|
|
77
|
+
parsed: boolean;
|
|
78
|
+
constructor(argv: string[], config: Config);
|
|
79
|
+
/**
|
|
80
|
+
* instantiate and run the command
|
|
81
|
+
*
|
|
82
|
+
* @param {Command.Class} this - the command class
|
|
83
|
+
* @param {string[]} argv argv
|
|
84
|
+
* @param {LoadOptions} opts options
|
|
85
|
+
* @returns {Promise<unknown>} result
|
|
86
|
+
*/
|
|
87
|
+
static run<T extends Command>(this: new (argv: string[], config: Config) => T, argv?: string[], opts?: LoadOptions): Promise<ReturnType<T['run']>>;
|
|
88
|
+
protected get ctor(): typeof Command;
|
|
89
|
+
protected _run<T>(): Promise<T>;
|
|
90
|
+
protected catch(err: CommandError): Promise<any>;
|
|
91
|
+
error(input: Error | string, options: {
|
|
92
|
+
code?: string;
|
|
93
|
+
exit: false;
|
|
94
|
+
} & PrettyPrintableError): void;
|
|
95
|
+
error(input: Error | string, options?: {
|
|
96
|
+
code?: string;
|
|
97
|
+
exit?: number;
|
|
98
|
+
} & PrettyPrintableError): never;
|
|
99
|
+
exit(code?: number): never;
|
|
100
|
+
protected finally(_: Error | undefined): Promise<any>;
|
|
101
|
+
protected init(): Promise<any>;
|
|
102
|
+
/**
|
|
103
|
+
* Determine if the command is being run with the --json flag in a command that supports it.
|
|
104
|
+
*
|
|
105
|
+
* @returns {boolean} true if the command supports json and the --json flag is present
|
|
106
|
+
*/
|
|
107
|
+
jsonEnabled(): boolean;
|
|
108
|
+
log(message?: string, ...args: any[]): void;
|
|
109
|
+
protected logJson(json: unknown): void;
|
|
110
|
+
logToStderr(message?: string, ...args: any[]): void;
|
|
111
|
+
protected parse<F extends FlagOutput, B extends FlagOutput, A extends ArgOutput>(options?: Input<F, B, A>, argv?: string[]): Promise<ParserOutput<F, B, A>>;
|
|
112
|
+
/**
|
|
113
|
+
* actual command run code goes here
|
|
114
|
+
*/
|
|
115
|
+
abstract run(): Promise<any>;
|
|
116
|
+
protected toErrorJson(err: unknown): any;
|
|
117
|
+
protected toSuccessJson(result: unknown): any;
|
|
118
|
+
warn(input: Error | string): Error | string;
|
|
119
|
+
protected warnIfCommandDeprecated(): void;
|
|
120
|
+
protected warnIfFlagDeprecated(flags: Record<string, unknown>): void;
|
|
121
|
+
private removeEnvVar;
|
|
122
|
+
}
|
|
123
|
+
export declare namespace Command {
|
|
124
|
+
/**
|
|
125
|
+
* The Command class exported by a command file.
|
|
126
|
+
*/
|
|
127
|
+
type Class = typeof Command & {
|
|
128
|
+
id: string;
|
|
129
|
+
run(argv?: string[], config?: LoadOptions): Promise<any>;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* A cached command that's had a `load` method attached to it.
|
|
133
|
+
*
|
|
134
|
+
* The `Plugin` class loads the commands from the manifest (if it exists) or requires and caches
|
|
135
|
+
* the commands directly from the commands directory inside the plugin. At this point the plugin
|
|
136
|
+
* is working with `Command.Cached`. It then appends a `load` method to each one. If the a command
|
|
137
|
+
* is executed then the `load` method is used to require the command class.
|
|
138
|
+
*/
|
|
139
|
+
type Loadable = Cached & {
|
|
140
|
+
load(): Promise<Command.Class>;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* A cached version of the command. This is created by the cachedCommand utility and
|
|
144
|
+
* stored in the oclif.manifest.json.
|
|
145
|
+
*/
|
|
146
|
+
type Cached = {
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
aliasPermutations?: string[] | undefined;
|
|
149
|
+
aliases: string[];
|
|
150
|
+
args: {
|
|
151
|
+
[name: string]: Arg.Cached;
|
|
152
|
+
};
|
|
153
|
+
deprecateAliases?: boolean | undefined;
|
|
154
|
+
deprecationOptions?: Deprecation | undefined;
|
|
155
|
+
description?: string | undefined;
|
|
156
|
+
examples?: Example[] | undefined;
|
|
157
|
+
flags: {
|
|
158
|
+
[name: string]: Flag.Cached;
|
|
159
|
+
};
|
|
160
|
+
hasDynamicHelp?: boolean;
|
|
161
|
+
hidden: boolean;
|
|
162
|
+
hiddenAliases: string[];
|
|
163
|
+
id: string;
|
|
164
|
+
isESM?: boolean | undefined;
|
|
165
|
+
permutations?: string[] | undefined;
|
|
166
|
+
pluginAlias?: string | undefined;
|
|
167
|
+
pluginName?: string | undefined;
|
|
168
|
+
pluginType?: string | undefined;
|
|
169
|
+
relativePath?: string[] | undefined;
|
|
170
|
+
state?: 'beta' | 'deprecated' | string | undefined;
|
|
171
|
+
strict?: boolean | undefined;
|
|
172
|
+
summary?: string | undefined;
|
|
173
|
+
type?: string | undefined;
|
|
174
|
+
usage?: string | string[] | undefined;
|
|
175
|
+
};
|
|
176
|
+
type Flag = IFlag<any>;
|
|
177
|
+
namespace Flag {
|
|
178
|
+
type Cached = Omit<Flag, 'input' | 'parse'> & (BooleanFlagProps | OptionFlagProps) & {
|
|
179
|
+
hasDynamicHelp?: boolean | undefined;
|
|
180
|
+
};
|
|
181
|
+
type Any = Cached | Flag;
|
|
182
|
+
}
|
|
183
|
+
type Arg = IArg<any>;
|
|
184
|
+
namespace Arg {
|
|
185
|
+
type Cached = Omit<Arg, 'input' | 'parse'> & ArgProps;
|
|
186
|
+
type Any = Arg | Cached;
|
|
187
|
+
}
|
|
188
|
+
type Example = {
|
|
189
|
+
command: string;
|
|
190
|
+
description: string;
|
|
191
|
+
} | string;
|
|
192
|
+
}
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Command = void 0;
|
|
40
|
+
const node_url_1 = require("node:url");
|
|
41
|
+
const node_util_1 = require("node:util");
|
|
42
|
+
const cache_1 = __importDefault(require("./cache"));
|
|
43
|
+
const config_1 = require("./config");
|
|
44
|
+
const Errors = __importStar(require("./errors"));
|
|
45
|
+
const util_1 = require("./help/util");
|
|
46
|
+
const logger_1 = require("./logger");
|
|
47
|
+
const Parser = __importStar(require("./parser"));
|
|
48
|
+
const aggregate_flags_1 = require("./util/aggregate-flags");
|
|
49
|
+
const ids_1 = require("./util/ids");
|
|
50
|
+
const util_2 = require("./util/util");
|
|
51
|
+
const ux_1 = require("./ux");
|
|
52
|
+
const pjson = cache_1.default.getInstance().get('@oclif/core');
|
|
53
|
+
/**
|
|
54
|
+
* swallows stdout epipe errors
|
|
55
|
+
* this occurs when stdout closes such as when piping to head
|
|
56
|
+
*/
|
|
57
|
+
process.stdout.on('error', (err) => {
|
|
58
|
+
if (err && err.code === 'EPIPE')
|
|
59
|
+
return;
|
|
60
|
+
throw err;
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* An abstract class which acts as the base for each command
|
|
64
|
+
* in your project.
|
|
65
|
+
*/
|
|
66
|
+
class Command {
|
|
67
|
+
argv;
|
|
68
|
+
config;
|
|
69
|
+
static _base = `${pjson.name}@${pjson.version}`;
|
|
70
|
+
/** An array of aliases for this command. */
|
|
71
|
+
static aliases = [];
|
|
72
|
+
/** An order-dependent object of arguments for the command */
|
|
73
|
+
static args = {};
|
|
74
|
+
static baseFlags;
|
|
75
|
+
static constraints;
|
|
76
|
+
/**
|
|
77
|
+
* Emit deprecation warning when a command alias is used
|
|
78
|
+
*/
|
|
79
|
+
static deprecateAliases;
|
|
80
|
+
static deprecationOptions;
|
|
81
|
+
/**
|
|
82
|
+
* A full description of how to use the command.
|
|
83
|
+
*
|
|
84
|
+
* If no summary, the first line of the description will be used as the summary.
|
|
85
|
+
*/
|
|
86
|
+
static description;
|
|
87
|
+
static enableJsonFlag = false;
|
|
88
|
+
/**
|
|
89
|
+
* An array of examples to show at the end of the command's help.
|
|
90
|
+
*
|
|
91
|
+
* IF only a string is provided, it will try to look for a line that starts
|
|
92
|
+
* with the cmd.bin as the example command and the rest as the description.
|
|
93
|
+
* If found, the command will be formatted appropriately.
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
* EXAMPLES:
|
|
97
|
+
* A description of a particular use case.
|
|
98
|
+
*
|
|
99
|
+
* $ <%= config.bin => command flags
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
static examples;
|
|
103
|
+
/** A hash of flags for the command */
|
|
104
|
+
static flags;
|
|
105
|
+
static hasDynamicHelp = false;
|
|
106
|
+
static help;
|
|
107
|
+
/** Hide the command from help */
|
|
108
|
+
static hidden;
|
|
109
|
+
/** An array of aliases for this command that are hidden from help. */
|
|
110
|
+
static hiddenAliases = [];
|
|
111
|
+
/** A command ID, used mostly in error or verbose reporting. */
|
|
112
|
+
static id;
|
|
113
|
+
static plugin;
|
|
114
|
+
static pluginAlias;
|
|
115
|
+
static pluginName;
|
|
116
|
+
static pluginType;
|
|
117
|
+
/** Mark the command as a given state (e.g. beta or deprecated) in help */
|
|
118
|
+
static state;
|
|
119
|
+
/** When set to false, allows a variable amount of arguments */
|
|
120
|
+
static strict = true;
|
|
121
|
+
/**
|
|
122
|
+
* The tweet-sized description for your class, used in a parent-commands
|
|
123
|
+
* sub-command listing and as the header for the command help.
|
|
124
|
+
*/
|
|
125
|
+
static summary;
|
|
126
|
+
/**
|
|
127
|
+
* An override string (or strings) for the default usage documentation.
|
|
128
|
+
*/
|
|
129
|
+
static usage;
|
|
130
|
+
debug;
|
|
131
|
+
id;
|
|
132
|
+
parsed = false;
|
|
133
|
+
constructor(argv, config) {
|
|
134
|
+
this.argv = argv;
|
|
135
|
+
this.config = config;
|
|
136
|
+
this.id = this.ctor.id;
|
|
137
|
+
try {
|
|
138
|
+
this.debug = (0, logger_1.makeDebug)(this.id ? `${this.config.bin}:${this.id}` : this.config.bin);
|
|
139
|
+
}
|
|
140
|
+
catch {
|
|
141
|
+
this.debug = () => {
|
|
142
|
+
// noop
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* instantiate and run the command
|
|
148
|
+
*
|
|
149
|
+
* @param {Command.Class} this - the command class
|
|
150
|
+
* @param {string[]} argv argv
|
|
151
|
+
* @param {LoadOptions} opts options
|
|
152
|
+
* @returns {Promise<unknown>} result
|
|
153
|
+
*/
|
|
154
|
+
static async run(argv, opts) {
|
|
155
|
+
if (!argv)
|
|
156
|
+
argv = process.argv.slice(2);
|
|
157
|
+
// Handle the case when a file URL string is passed in such as 'import.meta.url'; covert to file path.
|
|
158
|
+
if (typeof opts === 'string' && opts.startsWith('file://')) {
|
|
159
|
+
opts = (0, node_url_1.fileURLToPath)(opts);
|
|
160
|
+
}
|
|
161
|
+
const config = await config_1.Config.load(opts || require.main?.filename || __dirname);
|
|
162
|
+
const cache = cache_1.default.getInstance();
|
|
163
|
+
if (!cache.has('config'))
|
|
164
|
+
cache.set('config', config);
|
|
165
|
+
const cmd = new this(argv, config);
|
|
166
|
+
if (!cmd.id) {
|
|
167
|
+
const id = cmd.constructor.name.toLowerCase();
|
|
168
|
+
cmd.id = id;
|
|
169
|
+
cmd.ctor.id = id;
|
|
170
|
+
}
|
|
171
|
+
return cmd._run();
|
|
172
|
+
}
|
|
173
|
+
get ctor() {
|
|
174
|
+
return this.constructor;
|
|
175
|
+
}
|
|
176
|
+
async _run() {
|
|
177
|
+
let err;
|
|
178
|
+
let result;
|
|
179
|
+
try {
|
|
180
|
+
// remove redirected env var to allow subsessions to run autoupdated client
|
|
181
|
+
this.removeEnvVar('REDIRECTED');
|
|
182
|
+
await this.init();
|
|
183
|
+
result = await this.run();
|
|
184
|
+
}
|
|
185
|
+
catch (error) {
|
|
186
|
+
err = error;
|
|
187
|
+
await this.catch(error);
|
|
188
|
+
}
|
|
189
|
+
finally {
|
|
190
|
+
await this.finally(err);
|
|
191
|
+
}
|
|
192
|
+
if (result && this.jsonEnabled())
|
|
193
|
+
this.logJson(this.toSuccessJson(result));
|
|
194
|
+
if (!this.parsed && !(0, util_2.isProd)()) {
|
|
195
|
+
process.emitWarning(`Command ${this.id} did not parse its arguments. Did you forget to call 'this.parse'?`, {
|
|
196
|
+
code: 'UnparsedCommand',
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return result;
|
|
200
|
+
}
|
|
201
|
+
async catch(err) {
|
|
202
|
+
process.exitCode = process.exitCode ?? err.exitCode ?? 1;
|
|
203
|
+
if (this.jsonEnabled()) {
|
|
204
|
+
this.logJson(this.toErrorJson(err));
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
if (!err.message)
|
|
208
|
+
throw err;
|
|
209
|
+
try {
|
|
210
|
+
ux_1.ux.action.stop(ux_1.ux.colorize('bold', ux_1.ux.colorize('red', '!')));
|
|
211
|
+
}
|
|
212
|
+
catch { }
|
|
213
|
+
throw err;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
error(input, options = {}) {
|
|
217
|
+
return Errors.error(input, options);
|
|
218
|
+
}
|
|
219
|
+
exit(code = 0) {
|
|
220
|
+
Errors.exit(code);
|
|
221
|
+
}
|
|
222
|
+
async finally(_) { }
|
|
223
|
+
async init() {
|
|
224
|
+
this.debug('init version: %s argv: %o', this.ctor._base, this.argv);
|
|
225
|
+
const g = globalThis;
|
|
226
|
+
g['http-call'] = g['http-call'] || {};
|
|
227
|
+
g['http-call'].userAgent = this.config.userAgent;
|
|
228
|
+
this.warnIfCommandDeprecated();
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Determine if the command is being run with the --json flag in a command that supports it.
|
|
232
|
+
*
|
|
233
|
+
* @returns {boolean} true if the command supports json and the --json flag is present
|
|
234
|
+
*/
|
|
235
|
+
jsonEnabled() {
|
|
236
|
+
// If the command doesn't support json, return false
|
|
237
|
+
if (!this.ctor?.enableJsonFlag)
|
|
238
|
+
return false;
|
|
239
|
+
// If the CONTENT_TYPE env var is set to json, return true
|
|
240
|
+
if (this.config.scopedEnvVar?.('CONTENT_TYPE')?.toLowerCase() === 'json')
|
|
241
|
+
return true;
|
|
242
|
+
const passThroughIndex = this.argv.indexOf('--');
|
|
243
|
+
const jsonIndex = this.argv.indexOf('--json');
|
|
244
|
+
return passThroughIndex === -1
|
|
245
|
+
? // If '--' is not present, then check for `--json` in this.argv
|
|
246
|
+
jsonIndex !== -1
|
|
247
|
+
: // If '--' is present, return true only the --json flag exists and is before the '--'
|
|
248
|
+
jsonIndex !== -1 && jsonIndex < passThroughIndex;
|
|
249
|
+
}
|
|
250
|
+
log(message = '', ...args) {
|
|
251
|
+
if (!this.jsonEnabled()) {
|
|
252
|
+
message = typeof message === 'string' ? message : (0, node_util_1.inspect)(message);
|
|
253
|
+
ux_1.ux.stdout(message, ...args);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
logJson(json) {
|
|
257
|
+
ux_1.ux.stdout(ux_1.ux.colorizeJson(json, { pretty: true, theme: this.config.theme?.json }));
|
|
258
|
+
}
|
|
259
|
+
logToStderr(message = '', ...args) {
|
|
260
|
+
if (!this.jsonEnabled()) {
|
|
261
|
+
message = typeof message === 'string' ? message : (0, node_util_1.inspect)(message);
|
|
262
|
+
ux_1.ux.stderr(message, ...args);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
async parse(options, argv = this.argv) {
|
|
266
|
+
if (!options)
|
|
267
|
+
options = this.ctor;
|
|
268
|
+
const opts = {
|
|
269
|
+
context: this,
|
|
270
|
+
...options,
|
|
271
|
+
flags: (0, aggregate_flags_1.aggregateFlags)(options.flags, options.baseFlags, options.enableJsonFlag),
|
|
272
|
+
};
|
|
273
|
+
const hookResult = await this.config.runHook('preparse', { argv: [...argv], options: opts });
|
|
274
|
+
// Since config.runHook will only run the hook for the root plugin, hookResult.successes will always have a length of 0 or 1
|
|
275
|
+
// But to be extra safe, we find the result that matches the root plugin.
|
|
276
|
+
const argvToParse = hookResult.successes?.length
|
|
277
|
+
? (hookResult.successes.find((s) => s.plugin.root === cache_1.default.getInstance().get('rootPlugin')?.root)?.result ??
|
|
278
|
+
argv)
|
|
279
|
+
: argv;
|
|
280
|
+
this.argv = [...argvToParse];
|
|
281
|
+
const results = await Parser.parse(argvToParse, opts);
|
|
282
|
+
this.warnIfFlagDeprecated(results.flags ?? {});
|
|
283
|
+
this.parsed = true;
|
|
284
|
+
return results;
|
|
285
|
+
}
|
|
286
|
+
toErrorJson(err) {
|
|
287
|
+
if (err instanceof Error) {
|
|
288
|
+
// `Error.prototype.message`/`.name` are non-enumerable, so they are dropped
|
|
289
|
+
// by `JSON.stringify` in `logJson`. Surface them explicitly while preserving
|
|
290
|
+
// any enumerable own properties (e.g. a `CLIError`'s `oclif` metadata).
|
|
291
|
+
return { error: { ...err, message: err.message, name: err.name } };
|
|
292
|
+
}
|
|
293
|
+
return { error: err };
|
|
294
|
+
}
|
|
295
|
+
toSuccessJson(result) {
|
|
296
|
+
return result;
|
|
297
|
+
}
|
|
298
|
+
warn(input) {
|
|
299
|
+
if (!this.jsonEnabled())
|
|
300
|
+
Errors.warn(input);
|
|
301
|
+
return input;
|
|
302
|
+
}
|
|
303
|
+
warnIfCommandDeprecated() {
|
|
304
|
+
const [id] = (0, util_1.normalizeArgv)(this.config);
|
|
305
|
+
if (this.ctor.deprecateAliases && [...this.ctor.aliases, ...this.ctor.hiddenAliases].includes(id)) {
|
|
306
|
+
const cmdName = (0, ids_1.toConfiguredId)(this.ctor.id, this.config);
|
|
307
|
+
const aliasName = (0, ids_1.toConfiguredId)(id, this.config);
|
|
308
|
+
this.warn((0, util_1.formatCommandDeprecationWarning)(aliasName, { to: cmdName }));
|
|
309
|
+
}
|
|
310
|
+
if (this.ctor.state === 'deprecated') {
|
|
311
|
+
const cmdName = (0, ids_1.toConfiguredId)(this.ctor.id, this.config);
|
|
312
|
+
this.warn((0, util_1.formatCommandDeprecationWarning)(cmdName, this.ctor.deprecationOptions));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
warnIfFlagDeprecated(flags) {
|
|
316
|
+
const allFlags = (0, aggregate_flags_1.aggregateFlags)(this.ctor.flags, this.ctor.baseFlags, this.ctor.enableJsonFlag);
|
|
317
|
+
for (const flag of Object.keys(flags)) {
|
|
318
|
+
const flagDef = allFlags[flag];
|
|
319
|
+
const deprecated = flagDef?.deprecated;
|
|
320
|
+
if (deprecated) {
|
|
321
|
+
this.warn((0, util_1.formatFlagDeprecationWarning)(flag, deprecated));
|
|
322
|
+
}
|
|
323
|
+
const deprecateAliases = flagDef?.deprecateAliases;
|
|
324
|
+
if (deprecateAliases) {
|
|
325
|
+
const aliases = (0, util_2.uniq)([...(flagDef?.aliases ?? []), ...(flagDef?.charAliases ?? [])]).map((a) => a.length === 1 ? `-${a}` : `--${a}`);
|
|
326
|
+
if (aliases.length === 0)
|
|
327
|
+
return;
|
|
328
|
+
const foundAliases = aliases.filter((alias) => this.argv.includes(alias));
|
|
329
|
+
for (const alias of foundAliases) {
|
|
330
|
+
let preferredUsage = `--${flagDef?.name}`;
|
|
331
|
+
if (flagDef?.char) {
|
|
332
|
+
preferredUsage += ` | -${flagDef?.char}`;
|
|
333
|
+
}
|
|
334
|
+
this.warn((0, util_1.formatFlagDeprecationWarning)(alias, { to: preferredUsage }));
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
removeEnvVar(envVar) {
|
|
340
|
+
const keys = [];
|
|
341
|
+
try {
|
|
342
|
+
keys.push(...this.config.scopedEnvVarKeys(envVar));
|
|
343
|
+
}
|
|
344
|
+
catch {
|
|
345
|
+
keys.push(this.config.scopedEnvVarKey(envVar));
|
|
346
|
+
}
|
|
347
|
+
keys.map((key) => delete process.env[key]);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
exports.Command = Command;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Command } from '../command';
|
|
2
|
+
import { Hook, Hooks, OclifConfiguration, PJSON, S3Templates, Topic, UserPJSON } from '../interfaces';
|
|
3
|
+
import { ArchTypes, Config as IConfig, LoadOptions, PlatformTypes, VersionDetails } from '../interfaces/config';
|
|
4
|
+
import { Plugin as IPlugin, Options } from '../interfaces/plugin';
|
|
5
|
+
import { Theme } from '../interfaces/theme';
|
|
6
|
+
export declare class Config implements IConfig {
|
|
7
|
+
options: Options;
|
|
8
|
+
arch: ArchTypes;
|
|
9
|
+
bin: string;
|
|
10
|
+
binAliases?: string[] | undefined;
|
|
11
|
+
binPath?: string | undefined;
|
|
12
|
+
cacheDir: string;
|
|
13
|
+
channel: string;
|
|
14
|
+
configDir: string;
|
|
15
|
+
dataDir: string;
|
|
16
|
+
dirname: string;
|
|
17
|
+
flexibleTaxonomy: boolean;
|
|
18
|
+
home: string;
|
|
19
|
+
isSingleCommandCLI: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
npmRegistry?: string | undefined;
|
|
22
|
+
nsisCustomization?: string | undefined;
|
|
23
|
+
pjson: PJSON;
|
|
24
|
+
platform: PlatformTypes;
|
|
25
|
+
plugins: Map<string, IPlugin>;
|
|
26
|
+
root: string;
|
|
27
|
+
shell: string;
|
|
28
|
+
theme?: Theme | undefined;
|
|
29
|
+
topicSeparator: ' ' | ':';
|
|
30
|
+
updateConfig: NonNullable<OclifConfiguration['update']>;
|
|
31
|
+
userAgent: string;
|
|
32
|
+
userPJSON?: UserPJSON | undefined;
|
|
33
|
+
valid: boolean;
|
|
34
|
+
version: string;
|
|
35
|
+
protected warned: boolean;
|
|
36
|
+
windows: boolean;
|
|
37
|
+
private _base;
|
|
38
|
+
private _commandIDs;
|
|
39
|
+
private _commands;
|
|
40
|
+
private _topics;
|
|
41
|
+
private commandPermutations;
|
|
42
|
+
private pluginLoader;
|
|
43
|
+
private rootPlugin;
|
|
44
|
+
private topicPermutations;
|
|
45
|
+
constructor(options: Options);
|
|
46
|
+
static load(opts?: LoadOptions): Promise<Config>;
|
|
47
|
+
get commandIDs(): string[];
|
|
48
|
+
get commands(): Command.Loadable[];
|
|
49
|
+
protected get isProd(): boolean;
|
|
50
|
+
static get rootPlugin(): IPlugin | undefined;
|
|
51
|
+
get topics(): Topic[];
|
|
52
|
+
get versionDetails(): VersionDetails;
|
|
53
|
+
protected dir(category: 'cache' | 'config' | 'data'): string;
|
|
54
|
+
findCommand(id: string, opts: {
|
|
55
|
+
must: true;
|
|
56
|
+
}): Command.Loadable;
|
|
57
|
+
findCommand(id: string, opts?: {
|
|
58
|
+
must: boolean;
|
|
59
|
+
}): Command.Loadable | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Find all command ids that include the provided command id.
|
|
62
|
+
*
|
|
63
|
+
* For example, if the command ids are:
|
|
64
|
+
* - foo:bar:baz
|
|
65
|
+
* - one:two:three
|
|
66
|
+
*
|
|
67
|
+
* `bar` would return `foo:bar:baz`
|
|
68
|
+
*
|
|
69
|
+
* @param partialCmdId string
|
|
70
|
+
* @param argv string[] process.argv containing the flags and arguments provided by the user
|
|
71
|
+
* @returns string[]
|
|
72
|
+
*/
|
|
73
|
+
findMatches(partialCmdId: string, argv: string[]): Command.Loadable[];
|
|
74
|
+
findTopic(id: string, opts: {
|
|
75
|
+
must: true;
|
|
76
|
+
}): Topic;
|
|
77
|
+
findTopic(id: string, opts?: {
|
|
78
|
+
must: boolean;
|
|
79
|
+
}): Topic | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Returns an array of all command ids. If flexible taxonomy is enabled then all permutations will be appended to the array.
|
|
82
|
+
* @returns string[]
|
|
83
|
+
*/
|
|
84
|
+
getAllCommandIDs(): string[];
|
|
85
|
+
/**
|
|
86
|
+
* Returns an array of all commands. If flexible taxonomy is enabled then all permutations will be appended to the array.
|
|
87
|
+
* @returns Command.Loadable[]
|
|
88
|
+
*/
|
|
89
|
+
getAllCommands(): Command.Loadable[];
|
|
90
|
+
getPluginsList(): IPlugin[];
|
|
91
|
+
load(): Promise<void>;
|
|
92
|
+
loadPluginsAndCommands(opts?: {
|
|
93
|
+
force: boolean;
|
|
94
|
+
}): Promise<void>;
|
|
95
|
+
loadTheme(): Promise<Theme | undefined>;
|
|
96
|
+
protected macosCacheDir(): string | undefined;
|
|
97
|
+
runCommand<T = unknown>(id: string, argv?: string[], cachedCommand?: Command.Loadable | null): Promise<T>;
|
|
98
|
+
runHook<T extends keyof Hooks, P extends Hooks = Hooks>(event: T, opts: P[T]['options'], timeout?: number, captureErrors?: boolean): Promise<Hook.Result<P[T]['return']>>;
|
|
99
|
+
s3Key(type: keyof S3Templates, ext?: '.tar.gz' | '.tar.xz' | IConfig.s3Key.Options, options?: IConfig.s3Key.Options): string;
|
|
100
|
+
s3Url(key: string): string;
|
|
101
|
+
scopedEnvVar(k: string): string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* this DOES NOT account for bin aliases, use scopedEnvVarKeys instead which will account for bin aliases
|
|
104
|
+
* @param k {string}, the unscoped key you want to get the value for
|
|
105
|
+
* @returns {string} returns the env var key
|
|
106
|
+
*/
|
|
107
|
+
scopedEnvVarKey(k: string): string;
|
|
108
|
+
/**
|
|
109
|
+
* gets the scoped env var keys for a given key, including bin aliases
|
|
110
|
+
* @param k {string}, the env key e.g. 'debug'
|
|
111
|
+
* @returns {string[]} e.g. ['SF_DEBUG', 'SFDX_DEBUG']
|
|
112
|
+
*/
|
|
113
|
+
scopedEnvVarKeys(k: string): string[];
|
|
114
|
+
scopedEnvVarTrue(k: string): boolean;
|
|
115
|
+
protected windowsHome(): string | undefined;
|
|
116
|
+
protected windowsHomedriveHome(): string | undefined;
|
|
117
|
+
protected windowsUserprofileHome(): string | undefined;
|
|
118
|
+
private buildS3Config;
|
|
119
|
+
private getCmdLookupId;
|
|
120
|
+
private getTopicLookupId;
|
|
121
|
+
/**
|
|
122
|
+
* Insert legacy plugins
|
|
123
|
+
*
|
|
124
|
+
* Replace invalid CLI plugins (cli-engine plugins, mostly Heroku) loaded via `this.loadPlugins`
|
|
125
|
+
* with oclif-compatible ones returned by @oclif/plugin-legacy init hook.
|
|
126
|
+
*
|
|
127
|
+
* @param plugins array of oclif-compatible plugins
|
|
128
|
+
*/
|
|
129
|
+
private insertLegacyPlugins;
|
|
130
|
+
private isJitPluginCommand;
|
|
131
|
+
private loadCommands;
|
|
132
|
+
private loadTopics;
|
|
133
|
+
private maybeAdjustDebugSetting;
|
|
134
|
+
private warn;
|
|
135
|
+
}
|