@oclif/plugin-which 1.0.2 → 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
@@ -1,3 +1,30 @@
1
+ # Changelog
2
+
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
+
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
+
12
+ ### [2.0.1](https://github.com/oclif/plugin-which/compare/v2.0.0...v2.0.1) (2021-12-02)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * bump core version ([49edb83](https://github.com/oclif/plugin-which/commit/49edb83b744e2de27fc0a0ed16447b75368c4086))
18
+ * get deps aligned ([9396b57](https://github.com/oclif/plugin-which/commit/9396b5768f946286c97d9239120bd5fb58defdbf))
19
+ * pin oclif ([377c6fa](https://github.com/oclif/plugin-which/commit/377c6fa2d3a175cd8ffa52552bb266c2ef7ebf85))
20
+
21
+ ## [1.0.3](https://github.com/oclif/plugin-which/compare/v1.0.2...v1.0.3) (2018-10-13)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * remove greenkeeper badge ([281ab74](https://github.com/oclif/plugin-which/commit/281ab74))
27
+
1
28
  ## [1.0.2](https://github.com/oclif/plugin-which/compare/v1.0.1...v1.0.2) (2018-09-14)
2
29
 
3
30
 
package/README.md CHANGED
@@ -6,10 +6,8 @@ find which plugin a command is in
6
6
  [![Version](https://img.shields.io/npm/v/@oclif/plugin-which.svg)](https://npmjs.org/package/@oclif/plugin-which)
7
7
  [![CircleCI](https://circleci.com/gh/oclif/plugin-which/tree/master.svg?style=shield)](https://circleci.com/gh/oclif/plugin-which/tree/master)
8
8
  [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/oclif/plugin-which?branch=master&svg=true)](https://ci.appveyor.com/project/oclif/plugin-which/branch/master)
9
- [![Codecov](https://codecov.io/gh/oclif/plugin-which/branch/master/graph/badge.svg)](https://codecov.io/gh/oclif/plugin-which)
10
9
  [![Downloads/week](https://img.shields.io/npm/dw/@oclif/plugin-which.svg)](https://npmjs.org/package/@oclif/plugin-which)
11
10
  [![License](https://img.shields.io/npm/l/@oclif/plugin-which.svg)](https://github.com/oclif/plugin-which/blob/master/package.json)
12
- [![Greenkeeper badge](https://badges.greenkeeper.io/oclif/plugin-which.svg)](https://greenkeeper.io/)
13
11
 
14
12
  <!-- toc -->
15
13
  * [Usage](#usage)
@@ -21,8 +19,8 @@ find which plugin a command is in
21
19
  $ npm install -g @oclif/plugin-which
22
20
  $ oclif-example COMMAND
23
21
  running command...
24
- $ oclif-example (-v|--version|version)
25
- @oclif/plugin-which/1.0.2 linux-x64 node-v10.10.0
22
+ $ oclif-example (--version)
23
+ @oclif/plugin-which/2.0.2 linux-x64 node-v12.22.7
26
24
  $ oclif-example --help [COMMAND]
27
25
  USAGE
28
26
  $ oclif-example COMMAND
@@ -31,16 +29,19 @@ USAGE
31
29
  <!-- usagestop -->
32
30
  # Commands
33
31
  <!-- commands -->
34
- * [`oclif-example which COMMAND`](#oclif-example-which-command)
32
+ * [`oclif-example which`](#oclif-example-which)
35
33
 
36
- ## `oclif-example which COMMAND`
34
+ ## `oclif-example which`
37
35
 
38
- show which plugin a command is in
36
+ Show which plugin a command is in.
39
37
 
40
38
  ```
41
39
  USAGE
42
- $ oclif-example which COMMAND
40
+ $ oclif-example which
41
+
42
+ DESCRIPTION
43
+ Show which plugin a command is in.
43
44
  ```
44
45
 
45
- _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v1.0.2/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)_
46
47
  <!-- commandsstop -->
@@ -1,9 +1,6 @@
1
- import { Command } from '@oclif/command';
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
  }
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const command_1 = require("@oclif/command");
3
+ const core_1 = require("@oclif/core");
4
4
  const cli_ux_1 = require("cli-ux");
5
- class Which extends command_1.Command {
5
+ class Which extends core_1.Command {
6
6
  async run() {
7
- const { args } = 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
- plugin: cmd.pluginName
11
+ plugin: cmd.pluginName,
12
12
  }, ['plugin']);
13
13
  }
14
14
  }
15
- Which.description = 'show which plugin a command is in';
16
- Which.args = [{ name: 'command', required: true }];
17
15
  exports.default = Which;
16
+ Which.description = 'Show which plugin a command is in.';
17
+ Which.strict = false;
@@ -1 +1 @@
1
- {"version":"1.0.2","commands":{"which":{"id":"which","description":"show which plugin a command is in","pluginName":"@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,33 +1,33 @@
1
1
  {
2
2
  "name": "@oclif/plugin-which",
3
3
  "description": "find which plugin a command is in",
4
- "version": "1.0.2",
5
- "author": "Jeff Dickey @jdxcode",
4
+ "version": "2.0.2",
5
+ "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-which/issues",
7
7
  "dependencies": {
8
- "@oclif/command": "^1.5.1",
9
- "@oclif/config": "^1.7.6",
10
- "cli-ux": "^4.8.2",
11
- "tslib": "^1.9.3"
8
+ "@oclif/core": "^1.0.7",
9
+ "cli-ux": "^6.0.3",
10
+ "tslib": "^2.0.0"
12
11
  },
13
12
  "devDependencies": {
14
- "@oclif/dev-cli": "^1.18.0",
15
- "@oclif/plugin-help": "^2.1.2",
16
- "@oclif/test": "^1.2.1",
17
- "@oclif/tslint": "^3.1.0",
18
- "@types/chai": "^4.1.4",
19
- "@types/mocha": "^5.2.5",
20
- "@types/node": "^10.9.4",
21
- "chai": "^4",
22
- "globby": "^8",
23
- "mocha": "^5",
24
- "nyc": "^13.0.1",
25
- "ts-node": "^7.0.1",
26
- "tslint": "^5.11.0",
27
- "typescript": "^3.0.3"
13
+ "@oclif/plugin-help": "^5.1.7",
14
+ "@oclif/test": "^2.0.2",
15
+ "@types/chai": "^4.1.6",
16
+ "@types/mocha": "^9",
17
+ "@types/node": "^14.0.14",
18
+ "chai": "^4.2.0",
19
+ "eslint": "^7.32.0",
20
+ "eslint-config-oclif": "^4.0.0",
21
+ "eslint-config-oclif-typescript": "^1.0.2",
22
+ "globby": "^11",
23
+ "mocha": "^9",
24
+ "nyc": "^15.1.0",
25
+ "oclif": "2.0.0-main.11",
26
+ "ts-node": "^9.0.0",
27
+ "typescript": "4.4.3"
28
28
  },
29
29
  "engines": {
30
- "node": ">=8.0.0"
30
+ "node": ">=12.0.0"
31
31
  },
32
32
  "files": [
33
33
  "/lib",
@@ -48,9 +48,12 @@
48
48
  "repository": "oclif/plugin-which",
49
49
  "scripts": {
50
50
  "postpack": "rm -f oclif.manifest.json",
51
- "posttest": "tsc -p test --noEmit && tslint -p test -t stylish",
52
- "prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme",
53
- "test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
54
- "version": "oclif-dev readme && git add README.md"
51
+ "posttest": "yarn lint",
52
+ "prepack": "yarn build && oclif manifest . && oclif readme",
53
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
54
+ "version": "oclif readme && git add README.md",
55
+ "lint": "eslint . --ext .ts --config .eslintrc",
56
+ "pretest": "yarn build && tsc -p test --noEmit",
57
+ "build": "rm -rf lib && tsc"
55
58
  }
56
59
  }