@oclif/core
Advanced tools
Comparing version 0.5.31 to 0.5.32
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.5.32](https://github.com/oclif/core/compare/v0.5.31...v0.5.32) (2021-08-23) | ||
### Bug Fixes | ||
* account for aliases when converting spaced commands to commandID ([#232](https://github.com/oclif/core/issues/232)) ([b8ee9b2](https://github.com/oclif/core/commit/b8ee9b209ddacdf95f164a05473a05d1b6c53d6b)) | ||
### [0.5.31](https://github.com/oclif/core/compare/v0.5.30...v0.5.31) (2021-08-18) | ||
@@ -7,0 +14,0 @@ |
@@ -42,3 +42,10 @@ "use strict"; | ||
const hasSubCommandsWithArgs = () => { | ||
const subCommands = config.commands.filter(c => (c.id).startsWith(finalizeId())); | ||
const id = finalizeId(); | ||
/** | ||
* Get a list of sub commands for the current command id. A command is returned as a subcommand under either | ||
* of these conditions: | ||
* 1. the `id` start with the current command id. | ||
* 2. any of the aliases start with the current command id. | ||
*/ | ||
const subCommands = config.commands.filter(c => (c.id).startsWith(id) || c.aliases.some(a => a.startsWith(id))); | ||
return Boolean(subCommands.find(cmd => { var _a; return cmd.strict === false || ((_a = cmd.args) === null || _a === void 0 ? void 0 : _a.length) > 0; })); | ||
@@ -45,0 +52,0 @@ }; |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "0.5.31", | ||
"version": "0.5.32", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
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
203258
5100