@oclif/plugin-which
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [2.0.2](https://github.com/oclif/plugin-which/compare/v2.0.1...v2.0.2) (2021-12-02) | ||
| ### Bug Fixes | ||
| * allow commands with spaces ([7b1910a](https://github.com/oclif/plugin-which/commit/7b1910aa314cb98dd7d0ae44e195eccd94d25669)) | ||
| ### [2.0.1](https://github.com/oclif/plugin-which/compare/v2.0.0...v2.0.1) (2021-12-02) | ||
@@ -7,0 +14,0 @@ |
| import { Command } from '@oclif/core'; | ||
| export default class Which extends Command { | ||
| static description: string; | ||
| static args: { | ||
| name: string; | ||
| required: boolean; | ||
| }[]; | ||
| static strict: boolean; | ||
| run(): Promise<void>; | ||
| } |
@@ -7,4 +7,4 @@ "use strict"; | ||
| async run() { | ||
| const { args } = await this.parse(Which); | ||
| const cmd = this.config.findCommand(args.command, { must: true }); | ||
| const { argv } = await this.parse(Which); | ||
| const cmd = this.config.findCommand(argv.join(':'), { must: true }); | ||
| cli_ux_1.default.styledHeader(cmd.id); | ||
@@ -17,3 +17,3 @@ cli_ux_1.default.styledObject({ | ||
| exports.default = Which; | ||
| Which.description = 'show which plugin a command is in'; | ||
| Which.args = [{ name: 'command', required: true }]; | ||
| Which.description = 'Show which plugin a command is in.'; | ||
| Which.strict = false; |
@@ -1,1 +0,1 @@ | ||
| {"version":"2.0.1","commands":{"which":{"id":"which","description":"show which plugin a command is in","strict":true,"pluginName":"@oclif/plugin-which","pluginAlias":"@oclif/plugin-which","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"command","required":true}]}}} | ||
| {"version":"2.0.2","commands":{"which":{"id":"which","description":"Show which plugin a command is in.","strict":false,"pluginName":"@oclif/plugin-which","pluginAlias":"@oclif/plugin-which","pluginType":"core","aliases":[],"flags":{},"args":[]}}} |
+1
-1
| { | ||
| "name": "@oclif/plugin-which", | ||
| "description": "find which plugin a command is in", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/plugin-which/issues", |
+7
-7
@@ -23,3 +23,3 @@ @oclif/plugin-which | ||
| $ oclif-example (--version) | ||
| @oclif/plugin-which/2.0.1 linux-x64 node-v12.22.7 | ||
| @oclif/plugin-which/2.0.2 linux-x64 node-v12.22.7 | ||
| $ oclif-example --help [COMMAND] | ||
@@ -33,17 +33,17 @@ USAGE | ||
| <!-- commands --> | ||
| * [`oclif-example which COMMAND`](#oclif-example-which-command) | ||
| * [`oclif-example which`](#oclif-example-which) | ||
| ## `oclif-example which COMMAND` | ||
| ## `oclif-example which` | ||
| show which plugin a command is in | ||
| Show which plugin a command is in. | ||
| ``` | ||
| USAGE | ||
| $ oclif-example which [COMMAND] | ||
| $ oclif-example which | ||
| DESCRIPTION | ||
| show which plugin a command is in | ||
| Show which plugin a command is in. | ||
| ``` | ||
| _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.0.1/src/commands/which.ts)_ | ||
| _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.0.2/src/commands/which.ts)_ | ||
| <!-- commandsstop --> |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6884
1.38%0
-100%28
-9.68%