@aiot-toolkit/commander
Advanced tools
Comparing version 2.0.2-dev.8 to 2.0.2
@@ -11,7 +11,4 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const StringUtil_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/utils/StringUtil")); | ||
const shared_utils_1 = require("@aiot-toolkit/shared-utils"); | ||
const prompts_1 = require("@inquirer/prompts"); | ||
@@ -57,3 +54,3 @@ const commander_1 = require("commander"); | ||
const { name, enableInquirer } = item; | ||
const cameName = StringUtil_1.default.hyphenedToCamel(name); | ||
const cameName = shared_utils_1.StringUtil.hyphenedToCamel(name); | ||
const valueSource = instance.getOptionValueSource(cameName); | ||
@@ -87,3 +84,3 @@ const haveSet = valueSource && valueSource !== 'default'; | ||
const { name, description, type, defaultValue } = param; | ||
const cameName = StringUtil_1.default.hyphenedToCamel(name); | ||
const cameName = shared_utils_1.StringUtil.hyphenedToCamel(name); | ||
let result; | ||
@@ -90,0 +87,0 @@ switch (type) { |
@@ -1,6 +0,8 @@ | ||
export { default as Command } from './Command'; | ||
export { default as ICommand } from './interface/ICommand'; | ||
export { default as IParam } from './interface/IParam'; | ||
export { default as IProgram } from './interface/IProgram'; | ||
export { default as IPersistentCommandData } from './persistentCommand/IPersistentCommandData'; | ||
export { default as PersistentCommand } from './persistentCommand/PersistentCommand'; | ||
import Command from './Command'; | ||
import ICommand from './interface/ICommand'; | ||
import IParam from './interface/IParam'; | ||
import IProgram from './interface/IProgram'; | ||
import IPersistentCommandData from './persistentCommand/IPersistentCommandData'; | ||
import PersistentCommand from './persistentCommand/PersistentCommand'; | ||
export default Command; | ||
export { Command, ICommand, IParam, IPersistentCommandData, IProgram, PersistentCommand }; |
@@ -7,5 +7,6 @@ "use strict"; | ||
exports.PersistentCommand = exports.Command = void 0; | ||
var Command_1 = require("./Command"); | ||
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return __importDefault(Command_1).default; } }); | ||
var PersistentCommand_1 = require("./persistentCommand/PersistentCommand"); | ||
Object.defineProperty(exports, "PersistentCommand", { enumerable: true, get: function () { return __importDefault(PersistentCommand_1).default; } }); | ||
const Command_1 = __importDefault(require("./Command")); | ||
exports.Command = Command_1.default; | ||
const PersistentCommand_1 = __importDefault(require("./persistentCommand/PersistentCommand")); | ||
exports.PersistentCommand = PersistentCommand_1.default; | ||
exports.default = Command_1.default; |
{ | ||
"name": "@aiot-toolkit/commander", | ||
"version": "2.0.2-dev.8", | ||
"version": "2.0.2", | ||
"description": "A tool that generates complete commands with configuration", | ||
@@ -23,7 +23,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@aiot-toolkit/shared-utils": "2.0.2-dev.8", | ||
"@aiot-toolkit/shared-utils": "2.0.2", | ||
"@inquirer/prompts": "^3.0.3", | ||
"chalk": "^4.0.0", | ||
"commander": "^11.0.0" | ||
}, | ||
"gitHead": "831575362ba47778c9441f95cec41ddded36cffc" | ||
"gitHead": "8ca4bf2ed7bcf11911e5c514696951bdba4fc12d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
20816
4
+ Addedchalk@^4.0.0
+ Added@aiot-toolkit/shared-utils@2.0.2(transitive)
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@kwsites/file-exists@1.1.1(transitive)
+ Added@kwsites/promise-deferred@1.1.1(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedaccepts@1.3.8(transitive)
+ Addedansi-colors@4.1.3(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcache-content-type@1.0.1(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedcli-progress@3.12.0(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedco@4.6.0(transitive)
+ Addedcontent-disposition@0.5.4(transitive)
+ Addedcontent-type@1.0.5(transitive)
+ Addedcookies@0.9.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addeddebug@3.2.74.4.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddeep-equal@1.0.1(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addeddepd@1.1.22.0.0(transitive)
+ Addeddestroy@1.2.0(transitive)
+ Addeddijkstrajs@1.0.3(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedee-first@1.1.1(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedencodeurl@1.0.2(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedescape-html@1.0.3(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedfresh@0.5.2(transitive)
+ Addedfswin@3.24.829(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedget-intrinsic@1.2.7(transitive)
+ Addedget-proto@1.0.1(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhttp-assert@1.5.0(transitive)
+ Addedhttp-errors@1.6.31.8.12.0.0(transitive)
+ Addedinherits@2.0.32.0.4(transitive)
+ Addedis-generator-function@1.1.0(transitive)
+ Addedis-regex@1.2.1(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedkeygrip@1.1.0(transitive)
+ Addedkoa@2.15.3(transitive)
+ Addedkoa-compose@4.2.0(transitive)
+ Addedkoa-convert@2.0.0(transitive)
+ Addedkoa-router@13.0.1(transitive)
+ Addedkoa-send@5.0.1(transitive)
+ Addedkoa-static@5.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedmedia-typer@0.3.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@10.0.19.0.5(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.1.3(transitive)
+ Addednegotiator@0.6.3(transitive)
+ Addedon-finished@2.4.1(transitive)
+ Addedonly@0.0.2(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedparseurl@1.3.3(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedpath-to-regexp@8.2.0(transitive)
+ Addedpngjs@5.0.0(transitive)
+ Addedportfinder@1.0.32(transitive)
+ Addedqrcode@1.5.4(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedresolve-path@1.4.0(transitive)
+ Addedrimraf@5.0.10(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafe-regex-test@1.1.0(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsetprototypeof@1.1.01.2.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsimple-git@3.27.0(transitive)
+ Addedstatuses@1.5.02.0.1(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedtsscmp@1.0.6(transitive)
+ Addedtype-is@1.6.18(transitive)
+ Addedvary@1.1.2(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)
+ Addedylru@1.4.0(transitive)
- Removed@aiot-toolkit/shared-utils@2.0.2-dev.8(transitive)
- Removedqrcode-terminal@0.12.0(transitive)