Socket
Socket
Sign inDemoInstall

@oclif/plugin-help

Package Overview
Dependencies
Maintainers
8
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/plugin-help - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [3.2.0](https://github.com/oclif/plugin-help/compare/v3.1.0...v3.2.0) (2020-08-03)
### Features
* support src/command/index cmd ([#112](https://github.com/oclif/plugin-help/issues/112)) ([8957336](https://github.com/oclif/plugin-help/commit/8957336f3c35675bb243ac90c49c298fbef23e59))
## [2.1.4](https://github.com/oclif/plugin-help/compare/v2.1.3...v2.1.4) (2018-11-12)

@@ -2,0 +9,0 @@

11

lib/index.js

@@ -16,2 +16,3 @@ "use strict";

const { bold, } = chalk_1.default;
const ROOT_INDEX_CMD_ID = '';
function getHelpSubject(args) {

@@ -21,6 +22,6 @@ for (const arg of args) {

return;
if (arg === 'help' || arg === '--help' || arg === '-h')
continue;
if (arg.startsWith('-'))
continue;
if (arg === 'help')
continue;
return;
return arg;

@@ -71,2 +72,5 @@ }

if (!subject) {
const rootCmd = this.config.findCommand(ROOT_INDEX_CMD_ID);
if (rootCmd)
this.showCommandHelp(rootCmd);
this.showRootHelp();

@@ -120,2 +124,3 @@ return;

if (rootCommands.length > 0) {
rootCommands = rootCommands.filter(c => c.id);
console.log(this.formatCommands(rootCommands));

@@ -122,0 +127,0 @@ console.log('');

@@ -1,1 +0,1 @@

{"version":"3.1.0","commands":{"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","allowNo":false}},"args":[{"name":"command","description":"command to show help for","required":false}]}}}
{"version":"3.2.0","commands":{"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","allowNo":false}},"args":[{"name":"command","description":"command to show help for","required":false}]}}}
{
"name": "@oclif/plugin-help",
"description": "standard help for oclif",
"version": "3.1.0",
"version": "3.2.0",
"author": "Jeff Dickey @jdxcode",

@@ -13,5 +13,5 @@ "bugs": "https://github.com/oclif/plugin-help/issues",

"lodash.template": "^4.4.0",
"string-width": "^3.0.0",
"strip-ansi": "^5.0.0",
"widest-line": "^2.0.1",
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"widest-line": "^3.1.0",
"wrap-ansi": "^4.0.0"

@@ -27,16 +27,16 @@ },

"@types/lodash.template": "^4.4.4",
"@types/mocha": "^5.2.5",
"@types/node": "^8.10.59",
"@types/strip-ansi": "^3.0.0",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.14",
"@types/strip-ansi": "^5.2.1",
"@types/wrap-ansi": "^3.0.0",
"chai": "^4.2.0",
"eslint": "^6.6.0",
"eslint": "^7.3.1",
"eslint-config-oclif": "^3.1.0",
"eslint-config-oclif-typescript": "^0.1.0",
"globby": "^9.0.0",
"eslint-config-oclif-typescript": "^0.2.0",
"globby": "^11.0.1",
"mocha": "^5.2.0",
"nock": "^12.0.3",
"nock": "^13.0.0",
"sinon": "^9.0.1",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
"typescript": "3.8.3"
},

@@ -68,3 +68,3 @@ "engines": {

"lint": "eslint . --ext .ts --config .eslintrc",
"pretest": "tsc -p test --noEmit",
"pretest": "yarn build --noEmit && tsc -p test --noEmit",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",

@@ -71,0 +71,0 @@ "posttest": "yarn lint",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc