@handy-common-utils/oclif-utils
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -15,3 +15,4 @@ "use strict"; | ||
async generateHelpText() { | ||
const helpText = this.formatCommand(this.commandInstance.constructor); | ||
const cmd = this.commandInstance.constructor; | ||
const helpText = this.formatCommand(cmd.id == null ? Object.assign(Object.assign({}, cmd), { id: ' ' }) : cmd); | ||
return helpText; | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "@handy-common-utils/oclif-utils", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "oclif related utilities", | ||
@@ -18,9 +18,12 @@ "scripts": { | ||
"dependencies": { | ||
"@handy-common-utils/fs-utils": "^1.1.1", | ||
"@handy-common-utils/promise-utils": "^1.4.1" | ||
"@handy-common-utils/fs-utils": ">=1.1.1", | ||
"@handy-common-utils/promise-utils": ">=1.5.0" | ||
}, | ||
"peerDependencies": { | ||
"@oclif/core": ">=2 <5" | ||
}, | ||
"devDependencies": { | ||
"@handy-common-utils/dev-dependencies-mocha": "^1.5.4", | ||
"@oclif/test": "^2.3.26", | ||
"oclif": "^3.9.1", | ||
"@oclif/test": "^4.0.4", | ||
"oclif": "^4.13.7", | ||
"zx": "^4.3.0" | ||
@@ -46,9 +49,6 @@ }, | ||
"license": "Apache-2.0", | ||
"peerDependencies": { | ||
"@oclif/core": ">=2" | ||
}, | ||
"volta": { | ||
"node": "16.20.0", | ||
"npm": "8.19.4" | ||
"node": "18.16.0", | ||
"npm": "9.5.1" | ||
} | ||
} |
@@ -62,3 +62,2 @@ # @handy-common-utils/oclif-utils | ||
class Hello extends Command { | ||
static id = '.' // If you are build a single-command CLI, this can avoid the command name to duplicate in the USAGE section of the help output. | ||
@@ -65,0 +64,0 @@ // Feel free to define description, examples, etc. |
Sorry, the diff of this file is not supported yet
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
217
32578
291