@oclif/plugin-help
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -1,1 +0,1 @@ | ||
{"version":"1.1.3","commands":{"commands":{"id":"commands","pluginName":"@oclif/plugin-help","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"help":{"id":"help","description":"display help for <%= config.bin %>","pluginName":"@oclif/plugin-help","pluginType":"core","aliases":[],"flags":{"all":{"name":"all","type":"boolean","description":"see all commands in CLI"}},"args":[{"name":"command","description":"command to show help for","required":false}]}}} | ||
{"version":"1.1.4","commands":{"commands":{"id":"commands","pluginName":"@oclif/plugin-help","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"help":{"id":"help","description":"display help for <%= config.bin %>","pluginName":"@oclif/plugin-help","pluginType":"core","aliases":[],"flags":{"all":{"name":"all","type":"boolean","description":"see all commands in CLI"}},"args":[{"name":"command","description":"command to show help for","required":false}]}}} |
@@ -0,1 +1,10 @@ | ||
<a name="1.1.4"></a> | ||
## [1.1.4](https://github.com/oclif/plugin-help/compare/7a9b7508cb0d44c8e1ab2c8ba081d30bbd99e230...v1.1.4) (2018-02-17) | ||
### Bug Fixes | ||
* only show topics 1 level deep ([829e75e](https://github.com/oclif/plugin-help/commit/829e75e)) | ||
* only show topics 1 level deep ([5af8a0b](https://github.com/oclif/plugin-help/commit/5af8a0b)) | ||
<a name="1.1.3"></a> | ||
@@ -2,0 +11,0 @@ ## [1.1.3](https://github.com/oclif/plugin-help/compare/81c089f2b549984de4e8e25f1d941698b7f63cb3...v1.1.3) (2018-02-17) |
@@ -54,3 +54,4 @@ "use strict"; | ||
const name = command.id; | ||
topics = topics.filter(t => t.name.startsWith(name + ':')); | ||
const depth = name.split(':').length; | ||
topics = topics.filter(t => t.name.startsWith(name + ':') && t.name.split(':').length === depth + 1); | ||
let title = command.description && this.render(command.description).split('\n')[0]; | ||
@@ -68,4 +69,5 @@ if (title) | ||
const name = topic.name; | ||
const depth = name.split(':').length; | ||
topics = topics.filter(t => t.name.startsWith(name + ':') && t.name.split(':').length === depth + 1); | ||
console.log(this.topic(topic)); | ||
topics = topics.filter(t => t.name.startsWith(name + ':')); | ||
if (topics.length) { | ||
@@ -72,0 +74,0 @@ console.log(this.topics(topics)); |
{ | ||
"name": "@oclif/plugin-help", | ||
"description": "standard help for oclif", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/plugin-help/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
36278
564
6
1