@oclif/plugin-which
Advanced tools
@@ -1,2 +0,2 @@ | ||
| import { Command } from '@oclif/command'; | ||
| import { Command } from '@oclif/core'; | ||
| export default class Which extends Command { | ||
@@ -3,0 +3,0 @@ static description: string; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const command_1 = require("@oclif/command"); | ||
| const core_1 = require("@oclif/core"); | ||
| const cli_ux_1 = require("cli-ux"); | ||
| class Which extends command_1.Command { | ||
| class Which extends core_1.Command { | ||
| async run() { | ||
| const { args } = this.parse(Which); | ||
| const { args } = await this.parse(Which); | ||
| const cmd = this.config.findCommand(args.command, { must: true }); | ||
| cli_ux_1.default.styledHeader(cmd.id); | ||
| cli_ux_1.default.styledObject({ | ||
| plugin: cmd.pluginName | ||
| plugin: cmd.pluginName, | ||
| }, ['plugin']); | ||
| } | ||
| } | ||
| exports.default = Which; | ||
| Which.description = 'show which plugin a command is in'; | ||
| Which.args = [{ name: 'command', required: true }]; | ||
| exports.default = Which; |
@@ -1,1 +0,1 @@ | ||
| {"version":"1.0.3","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}]}}} | ||
| {"version":"2.0.0","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}]}}} |
+24
-21
| { | ||
| "name": "@oclif/plugin-which", | ||
| "description": "find which plugin a command is in", | ||
| "version": "1.0.3", | ||
| "version": "2.0.0", | ||
| "author": "Jeff Dickey @jdxcode", | ||
| "bugs": "https://github.com/oclif/plugin-which/issues", | ||
| "dependencies": { | ||
| "@oclif/command": "^1.5.4", | ||
| "@oclif/config": "^1.8.7", | ||
| "cli-ux": "^4.9.1", | ||
| "tslib": "^1.9.3" | ||
| "@oclif/core": "^0.5.39", | ||
| "cli-ux": "^5.4.7", | ||
| "tslib": "^2.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@oclif/dev-cli": "^1.19.1", | ||
| "@oclif/plugin-help": "^2.1.2", | ||
| "@oclif/plugin-help": "^5.1.0", | ||
| "@oclif/test": "^1.2.1", | ||
| "@oclif/tslint": "^3.1.0", | ||
| "@types/chai": "^4.1.6", | ||
| "@types/mocha": "^5.2.5", | ||
| "@types/node": "^10.11.7", | ||
| "@types/mocha": "^8.0.0", | ||
| "@types/node": "^14.0.14", | ||
| "chai": "^4.2.0", | ||
| "globby": "^8", | ||
| "mocha": "^5", | ||
| "nyc": "^13.0.1", | ||
| "ts-node": "^7.0.1", | ||
| "tslint": "^5.11.0", | ||
| "typescript": "^3.1.3" | ||
| "eslint": "^7.3.1", | ||
| "eslint-config-oclif": "^3.1.0", | ||
| "eslint-config-oclif-typescript": "^0.2.0", | ||
| "globby": "^11", | ||
| "mocha": "^8", | ||
| "nyc": "^15.1.0", | ||
| "oclif": "^2.0.0-main.5", | ||
| "ts-node": "^9.0.0", | ||
| "typescript": "4.4.3" | ||
| }, | ||
| "engines": { | ||
| "node": ">=8.0.0" | ||
| "node": ">=12.0.0" | ||
| }, | ||
@@ -51,7 +51,10 @@ "files": [ | ||
| "postpack": "rm -f oclif.manifest.json", | ||
| "posttest": "tsc -p test --noEmit && tslint -p test -t stylish", | ||
| "prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme", | ||
| "test": "nyc mocha --forbid-only \"test/**/*.test.ts\"", | ||
| "version": "oclif-dev readme && git add README.md" | ||
| "posttest": "yarn lint", | ||
| "prepack": "yarn build && oclif manifest . && oclif readme", | ||
| "test": "mocha --forbid-only \"test/**/*.test.ts\"", | ||
| "version": "oclif readme && git add README.md", | ||
| "lint": "eslint . --ext .ts --config .eslintrc", | ||
| "pretest": "yarn build --noEmit && tsc -p test --noEmit", | ||
| "build": "rm -rf lib && tsc" | ||
| } | ||
| } |
+7
-5
@@ -9,3 +9,2 @@ @oclif/plugin-which | ||
| [](https://ci.appveyor.com/project/oclif/plugin-which/branch/master) | ||
| [](https://codecov.io/gh/oclif/plugin-which) | ||
| [](https://npmjs.org/package/@oclif/plugin-which) | ||
@@ -24,4 +23,4 @@ [](https://github.com/oclif/plugin-which/blob/master/package.json) | ||
| running command... | ||
| $ oclif-example (-v|--version|version) | ||
| @oclif/plugin-which/1.0.3 linux-x64 node-v10.12.0 | ||
| $ oclif-example (--version) | ||
| @oclif/plugin-which/2.0.0 darwin-x64 node-v12.22.6 | ||
| $ oclif-example --help [COMMAND] | ||
@@ -43,6 +42,9 @@ USAGE | ||
| USAGE | ||
| $ oclif-example which COMMAND | ||
| $ oclif-example which [COMMAND] | ||
| DESCRIPTION | ||
| show which plugin a command is in | ||
| ``` | ||
| _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v1.0.3/src/commands/which.ts)_ | ||
| _See code: [src/commands/which.ts](https://github.com/oclif/plugin-which/blob/v2.0.0/src/commands/which.ts)_ | ||
| <!-- commandsstop --> |
6171
1.06%3
-25%48
4.35%15
7.14%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated