@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 +27 -0
- package/README.md +10 -9
- package/lib/commands/which.d.ts +2 -5
- package/lib/commands/which.js +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +28 -25
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
|
[](https://npmjs.org/package/@oclif/plugin-which)
|
|
7
7
|
[](https://circleci.com/gh/oclif/plugin-which/tree/master)
|
|
8
8
|
[](https://ci.appveyor.com/project/oclif/plugin-which/branch/master)
|
|
9
|
-
[](https://codecov.io/gh/oclif/plugin-which)
|
|
10
9
|
[](https://npmjs.org/package/@oclif/plugin-which)
|
|
11
10
|
[](https://github.com/oclif/plugin-which/blob/master/package.json)
|
|
12
|
-
[](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 (
|
|
25
|
-
@oclif/plugin-which/
|
|
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
|
|
32
|
+
* [`oclif-example which`](#oclif-example-which)
|
|
35
33
|
|
|
36
|
-
## `oclif-example which
|
|
34
|
+
## `oclif-example which`
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
Show which plugin a command is in.
|
|
39
37
|
|
|
40
38
|
```
|
|
41
39
|
USAGE
|
|
42
|
-
$ oclif-example which
|
|
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/
|
|
46
|
+
_See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.0.2/src/commands/which.ts)_
|
|
46
47
|
<!-- commandsstop -->
|
package/lib/commands/which.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { Command } from '@oclif/
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
2
|
export default class Which extends Command {
|
|
3
3
|
static description: string;
|
|
4
|
-
static
|
|
5
|
-
name: string;
|
|
6
|
-
required: boolean;
|
|
7
|
-
}[];
|
|
4
|
+
static strict: boolean;
|
|
8
5
|
run(): Promise<void>;
|
|
9
6
|
}
|
package/lib/commands/which.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
4
|
const cli_ux_1 = require("cli-ux");
|
|
5
|
-
class Which extends
|
|
5
|
+
class Which extends core_1.Command {
|
|
6
6
|
async run() {
|
|
7
|
-
const {
|
|
8
|
-
const cmd = this.config.findCommand(
|
|
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;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
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": "
|
|
5
|
-
"author": "
|
|
4
|
+
"version": "2.0.2",
|
|
5
|
+
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-which/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/
|
|
9
|
-
"
|
|
10
|
-
"
|
|
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/
|
|
15
|
-
"@oclif/
|
|
16
|
-
"@
|
|
17
|
-
"@
|
|
18
|
-
"@types/
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
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": ">=
|
|
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": "
|
|
52
|
-
"prepack": "
|
|
53
|
-
"test": "
|
|
54
|
-
"version": "oclif
|
|
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
|
}
|