@oclif/plugin-version 1.1.1 → 1.1.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 +9 -0
- package/lib/commands/version.d.ts +3 -2
- package/lib/commands/version.js +8 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.js +3 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
### [1.1.2](https://github.com/oclif/plugin-version/compare/v1.1.1...v1.1.2) (2022-08-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* bump some versions ([c2d19d6](https://github.com/oclif/plugin-version/commit/c2d19d68bbb755fd844efff3ab9edb1469cd222b))
|
|
11
|
+
* export the Version command and the VersionDetail interface. Enhance the verbose details to include the shell and root path. ([fcf6aaf](https://github.com/oclif/plugin-version/commit/fcf6aafdfb7336e982d246753a0f2f72c5383629))
|
|
12
|
+
* relax the unit test expecations ([a6c913b](https://github.com/oclif/plugin-version/commit/a6c913b523962b95d1b9fc121be2f2d1a575c55f))
|
|
13
|
+
|
|
5
14
|
### [1.1.1](https://github.com/oclif/plugin-version/compare/v1.1.0...v1.1.1) (2022-06-27)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Command } from '@oclif/core';
|
|
2
|
-
interface VersionDetail {
|
|
2
|
+
export interface VersionDetail {
|
|
3
3
|
cliVersion: string;
|
|
4
4
|
architecture: string;
|
|
5
5
|
nodeVersion: string;
|
|
6
6
|
pluginVersions?: string[];
|
|
7
7
|
osVersion?: string;
|
|
8
|
+
shell?: string;
|
|
9
|
+
rootPath?: string;
|
|
8
10
|
}
|
|
9
11
|
export default class Version extends Command {
|
|
10
12
|
static enableJsonFlag: boolean;
|
|
@@ -14,4 +16,3 @@ export default class Version extends Command {
|
|
|
14
16
|
run(): Promise<VersionDetail>;
|
|
15
17
|
private getFriendlyName;
|
|
16
18
|
}
|
|
17
|
-
export {};
|
package/lib/commands/version.js
CHANGED
|
@@ -18,6 +18,8 @@ class Version extends core_1.Command {
|
|
|
18
18
|
const osVersion = `${(0, node_os_1.type)()} ${(0, node_os_1.release)()}`;
|
|
19
19
|
versionDetail.pluginVersions = pluginVersions;
|
|
20
20
|
versionDetail.osVersion = osVersion;
|
|
21
|
+
versionDetail.shell = this.config.shell;
|
|
22
|
+
versionDetail.rootPath = this.config.root;
|
|
21
23
|
output = ` CLI Version:
|
|
22
24
|
\t${cliVersion}
|
|
23
25
|
|
|
@@ -32,6 +34,12 @@ class Version extends core_1.Command {
|
|
|
32
34
|
|
|
33
35
|
OS and Version:
|
|
34
36
|
\t${osVersion}
|
|
37
|
+
|
|
38
|
+
Shell:
|
|
39
|
+
\t${versionDetail.shell}
|
|
40
|
+
|
|
41
|
+
Root Path:
|
|
42
|
+
\t${versionDetail.rootPath}
|
|
35
43
|
`;
|
|
36
44
|
}
|
|
37
45
|
this.log(output);
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default _default;
|
|
1
|
+
export { VersionDetail, default as VersionCommand } from './commands/version';
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VersionCommand = void 0;
|
|
4
|
+
var version_1 = require("./commands/version");
|
|
5
|
+
Object.defineProperty(exports, "VersionCommand", { enumerable: true, get: function () { return version_1.default; } });
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.1.
|
|
1
|
+
{"version":"1.1.2","commands":{"version":{"id":"version","strict":true,"pluginName":"@oclif/plugin-version","pluginAlias":"@oclif/plugin-version","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"Show additional information about the CLI.","description":"Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}}}}
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-version",
|
|
3
3
|
"description": "A command that shows the CLI version",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-version/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^1.
|
|
8
|
+
"@oclif/core": "^1.14.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@commitlint/config-conventional": "^12.1.4",
|
|
12
12
|
"@oclif/plugin-help": "5.1.12",
|
|
13
|
-
"@oclif/test": "^2.
|
|
13
|
+
"@oclif/test": "^2.1.1",
|
|
14
14
|
"@types/chai": "^4.3.1",
|
|
15
15
|
"@types/mocha": "^8.0.0",
|
|
16
|
-
"@types/node": "^14.
|
|
17
|
-
"chai": "^4.
|
|
16
|
+
"@types/node": "^14.18.23",
|
|
17
|
+
"chai": "^4.3.6",
|
|
18
18
|
"commitlint": "^12.1.4",
|
|
19
19
|
"eslint": "^7.3.1",
|
|
20
20
|
"eslint-config-oclif": "^4",
|
|
21
21
|
"eslint-config-oclif-typescript": "^1.0.2",
|
|
22
22
|
"husky": "6",
|
|
23
23
|
"mocha": "^8.2.1",
|
|
24
|
-
"oclif": "2.
|
|
24
|
+
"oclif": "2.7.0",
|
|
25
25
|
"shx": "^0.3.4",
|
|
26
|
-
"ts-node": "^10.
|
|
26
|
+
"ts-node": "^10.9.1",
|
|
27
27
|
"typescript": "4.6.3"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|