@oclif/plugin-which 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.0.2](https://github.com/oclif/plugin-which/compare/v2.0.1...v2.0.2) (2021-12-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * allow commands with spaces ([7b1910a](https://github.com/oclif/plugin-which/commit/7b1910aa314cb98dd7d0ae44e195eccd94d25669))
11
+
5
12
  ### [2.0.1](https://github.com/oclif/plugin-which/compare/v2.0.0...v2.0.1) (2021-12-02)
6
13
 
7
14
 
package/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @oclif/plugin-which
20
20
  $ oclif-example COMMAND
21
21
  running command...
22
22
  $ oclif-example (--version)
23
- @oclif/plugin-which/2.0.1 linux-x64 node-v12.22.7
23
+ @oclif/plugin-which/2.0.2 linux-x64 node-v12.22.7
24
24
  $ oclif-example --help [COMMAND]
25
25
  USAGE
26
26
  $ oclif-example COMMAND
@@ -29,19 +29,19 @@ USAGE
29
29
  <!-- usagestop -->
30
30
  # Commands
31
31
  <!-- commands -->
32
- * [`oclif-example which COMMAND`](#oclif-example-which-command)
32
+ * [`oclif-example which`](#oclif-example-which)
33
33
 
34
- ## `oclif-example which COMMAND`
34
+ ## `oclif-example which`
35
35
 
36
- show which plugin a command is in
36
+ Show which plugin a command is in.
37
37
 
38
38
  ```
39
39
  USAGE
40
- $ oclif-example which [COMMAND]
40
+ $ oclif-example which
41
41
 
42
42
  DESCRIPTION
43
- show which plugin a command is in
43
+ Show which plugin a command is in.
44
44
  ```
45
45
 
46
- _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.0.1/src/commands/which.ts)_
46
+ _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.0.2/src/commands/which.ts)_
47
47
  <!-- commandsstop -->
@@ -1,9 +1,6 @@
1
1
  import { Command } from '@oclif/core';
2
2
  export default class Which extends Command {
3
3
  static description: string;
4
- static args: {
5
- name: string;
6
- required: boolean;
7
- }[];
4
+ static strict: boolean;
8
5
  run(): Promise<void>;
9
6
  }
@@ -4,8 +4,8 @@ const core_1 = require("@oclif/core");
4
4
  const cli_ux_1 = require("cli-ux");
5
5
  class Which extends core_1.Command {
6
6
  async run() {
7
- const { args } = await this.parse(Which);
8
- const cmd = this.config.findCommand(args.command, { must: true });
7
+ const { argv } = await this.parse(Which);
8
+ const cmd = this.config.findCommand(argv.join(':'), { must: true });
9
9
  cli_ux_1.default.styledHeader(cmd.id);
10
10
  cli_ux_1.default.styledObject({
11
11
  plugin: cmd.pluginName,
@@ -13,5 +13,5 @@ class Which extends core_1.Command {
13
13
  }
14
14
  }
15
15
  exports.default = Which;
16
- Which.description = 'show which plugin a command is in';
17
- Which.args = [{ name: 'command', required: true }];
16
+ Which.description = 'Show which plugin a command is in.';
17
+ Which.strict = false;
@@ -1 +1 @@
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}]}}}
1
+ {"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":[]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/plugin-which",
3
3
  "description": "find which plugin a command is in",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-which/issues",
7
7
  "dependencies": {