@oclif/plugin-which
Advanced tools
@@ -7,2 +7,5 @@ "use strict"; | ||
| const { argv } = await this.parse(Which); | ||
| if (argv.length === 0) { | ||
| throw new Error('"which" expects a command name. Try something like "which your:command:here" '); | ||
| } | ||
| let command = argv; | ||
@@ -14,5 +17,2 @@ if (argv.length === 1 && typeof argv[0] === 'string') { | ||
| } | ||
| else { | ||
| throw new Error('"which" expects a command name. Try something like "which your:command:here" '); | ||
| } | ||
| const cmd = this.config.findCommand(command.join(':'), { must: true }); | ||
@@ -19,0 +19,0 @@ core_1.ux.styledHeader(command.join(this.config.topicSeparator)); |
| { | ||
| "version": "2.2.11", | ||
| "version": "2.2.12", | ||
| "commands": { | ||
@@ -4,0 +4,0 @@ "which": { |
+1
-1
| { | ||
| "name": "@oclif/plugin-which", | ||
| "description": "find which plugin a command is in", | ||
| "version": "2.2.11", | ||
| "version": "2.2.12", | ||
| "author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/plugin-which/issues", |
+2
-2
@@ -23,3 +23,3 @@ @oclif/plugin-which | ||
| $ oclif-example (--version) | ||
| @oclif/plugin-which/2.2.11 linux-x64 node-v18.13.0 | ||
| @oclif/plugin-which/2.2.12 linux-x64 node-v18.13.0 | ||
| $ oclif-example --help [COMMAND] | ||
@@ -52,3 +52,3 @@ USAGE | ||
| _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.2.11/src/commands/which.ts)_ | ||
| _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.2.12/src/commands/which.ts)_ | ||
| <!-- commandsstop --> |
6418
0.28%