@oclif/plugin-which 1.0.1 → 2.0.1
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 +7 -5
- package/lib/commands/which.d.ts +1 -1
- package/lib/commands/which.js +5 -5
- 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.1](https://github.com/oclif/plugin-which/compare/v2.0.0...v2.0.1) (2021-12-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* bump core version ([49edb83](https://github.com/oclif/plugin-which/commit/49edb83b744e2de27fc0a0ed16447b75368c4086))
|
|
11
|
+
* get deps aligned ([9396b57](https://github.com/oclif/plugin-which/commit/9396b5768f946286c97d9239120bd5fb58defdbf))
|
|
12
|
+
* pin oclif ([377c6fa](https://github.com/oclif/plugin-which/commit/377c6fa2d3a175cd8ffa52552bb266c2ef7ebf85))
|
|
13
|
+
|
|
14
|
+
## [1.0.3](https://github.com/oclif/plugin-which/compare/v1.0.2...v1.0.3) (2018-10-13)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* remove greenkeeper badge ([281ab74](https://github.com/oclif/plugin-which/commit/281ab74))
|
|
20
|
+
|
|
21
|
+
## [1.0.2](https://github.com/oclif/plugin-which/compare/v1.0.1...v1.0.2) (2018-09-14)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* lint issue ([47b0f5b](https://github.com/oclif/plugin-which/commit/47b0f5b))
|
|
27
|
+
|
|
1
28
|
<a name="1.0.1"></a>
|
|
2
29
|
## [1.0.1](https://github.com/oclif/plugin-which/compare/v1.0.0...v1.0.1) (2018-05-22)
|
|
3
30
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,6 @@ 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
11
|
|
|
@@ -20,8 +19,8 @@ find which plugin a command is in
|
|
|
20
19
|
$ npm install -g @oclif/plugin-which
|
|
21
20
|
$ oclif-example COMMAND
|
|
22
21
|
running command...
|
|
23
|
-
$ oclif-example (
|
|
24
|
-
@oclif/plugin-which/
|
|
22
|
+
$ oclif-example (--version)
|
|
23
|
+
@oclif/plugin-which/2.0.1 linux-x64 node-v12.22.7
|
|
25
24
|
$ oclif-example --help [COMMAND]
|
|
26
25
|
USAGE
|
|
27
26
|
$ oclif-example COMMAND
|
|
@@ -38,8 +37,11 @@ show which plugin a command is in
|
|
|
38
37
|
|
|
39
38
|
```
|
|
40
39
|
USAGE
|
|
41
|
-
$ oclif-example which COMMAND
|
|
40
|
+
$ oclif-example which [COMMAND]
|
|
41
|
+
|
|
42
|
+
DESCRIPTION
|
|
43
|
+
show which plugin a command is in
|
|
42
44
|
```
|
|
43
45
|
|
|
44
|
-
_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.1/src/commands/which.ts)_
|
|
45
47
|
<!-- commandsstop -->
|
package/lib/commands/which.d.ts
CHANGED
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 { args } = this.parse(Which);
|
|
7
|
+
const { args } = await this.parse(Which);
|
|
8
8
|
const cmd = this.config.findCommand(args.command, { 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
|
+
exports.default = Which;
|
|
15
16
|
Which.description = 'show which plugin a command is in';
|
|
16
17
|
Which.args = [{ name: 'command', required: true }];
|
|
17
|
-
exports.default = Which;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
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}]}}}
|
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.1",
|
|
5
|
+
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-which/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"tslib": "^1"
|
|
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
|
}
|