@oclif/plugin-version 1.1.1 → 1.1.3

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.
@@ -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 {};
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const node_os_1 = require("node:os");
4
+ // eslint-disable-next-line unicorn/prefer-node-protocol
5
+ const os_1 = require("os");
5
6
  class Version extends core_1.Command {
6
7
  async run() {
7
8
  const { flags } = await this.parse(Version);
@@ -15,9 +16,11 @@ class Version extends core_1.Command {
15
16
  pluginVersions.push(`${this.getFriendlyName(plugin.name)} ${plugin.version} (${plugin.type}) ${plugin.type === 'link' ? plugin.root : ''}`.trim());
16
17
  }
17
18
  }
18
- const osVersion = `${(0, node_os_1.type)()} ${(0, node_os_1.release)()}`;
19
+ const osVersion = `${(0, os_1.type)()} ${(0, os_1.release)()}`;
19
20
  versionDetail.pluginVersions = pluginVersions;
20
21
  versionDetail.osVersion = osVersion;
22
+ versionDetail.shell = this.config.shell;
23
+ versionDetail.rootPath = this.config.root;
21
24
  output = ` CLI Version:
22
25
  \t${cliVersion}
23
26
 
@@ -28,10 +31,16 @@ class Version extends core_1.Command {
28
31
  \t${nodeVersion}
29
32
 
30
33
  Plugin Version:
31
- \t${pluginVersions.join(`${node_os_1.EOL}\t`)}
34
+ \t${pluginVersions.join(`${os_1.EOL}\t`)}
32
35
 
33
36
  OS and Version:
34
37
  \t${osVersion}
38
+
39
+ Shell:
40
+ \t${versionDetail.shell}
41
+
42
+ Root Path:
43
+ \t${versionDetail.rootPath}
35
44
  `;
36
45
  }
37
46
  this.log(output);
package/lib/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- declare const _default: {};
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.default = {};
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; } });
@@ -1 +1 @@
1
- {"version":"1.1.1","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"}}}}}
1
+ {"version":"1.1.3","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.1",
4
+ "version": "1.1.3",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-version/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^1.1.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.0.3",
13
+ "@oclif/test": "^2.1.1",
14
14
  "@types/chai": "^4.3.1",
15
15
  "@types/mocha": "^8.0.0",
16
- "@types/node": "^14.0.26",
17
- "chai": "^4.2.0",
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.1.0",
24
+ "oclif": "2.7.0",
25
25
  "shx": "^0.3.4",
26
- "ts-node": "^10.4.0",
26
+ "ts-node": "^10.9.1",
27
27
  "typescript": "4.6.3"
28
28
  },
29
29
  "engines": {
@@ -60,4 +60,4 @@
60
60
  "version": "oclif readme && git add README.md"
61
61
  },
62
62
  "types": "lib/index.d.ts"
63
- }
63
+ }
package/CHANGELOG.md DELETED
@@ -1,332 +0,0 @@
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
- ### [1.1.1](https://github.com/oclif/plugin-version/compare/v1.1.0...v1.1.1) (2022-06-27)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * add --json flag ([47d7105](https://github.com/oclif/plugin-version/commit/47d7105a4bd36f8bed8d4772485c4f5eef0fdacd))
11
- * suggestions on how to improve PR [#70](https://github.com/oclif/plugin-version/issues/70) ([4023f70](https://github.com/oclif/plugin-version/commit/4023f708204ca940b905cf98e43c0fce72a97307))
12
-
13
- ## [1.1.0](https://github.com/oclif/plugin-version/compare/v1.0.4...v1.1.0) (2022-06-13)
14
-
15
-
16
- ### Features
17
-
18
- * allow getting more info from version command ([b47a1fd](https://github.com/oclif/plugin-version/commit/b47a1fd83cc09f179e1594e94291051a043caaa8))
19
-
20
-
21
- ### Bug Fixes
22
-
23
- * unit tests & lint ([a7037af](https://github.com/oclif/plugin-version/commit/a7037af4220d06f0f1ff63e09d837e2fe06568e5))
24
-
25
- ### [1.0.4](https://github.com/oclif/plugin-version/compare/v1.0.3...v1.0.4) (2022-01-06)
26
-
27
-
28
- ### Bug Fixes
29
-
30
- * bump @oclif/core ([8e841bd](https://github.com/oclif/plugin-version/commit/8e841bd1a77fa3a6d6f450dfa5c5f06f80ebd87f))
31
-
32
- ### [1.0.3](https://github.com/oclif/plugin-version/compare/v1.0.2...v1.0.3) (2021-12-08)
33
-
34
-
35
- ### Bug Fixes
36
-
37
- * bump demps ([f2098c8](https://github.com/oclif/plugin-version/commit/f2098c819b7265eac440f2863de7d95377735ae1))
38
-
39
- ### [1.0.2](https://github.com/oclif/plugin-version/compare/v1.0.1...v1.0.2) (2021-12-02)
40
-
41
- ### [1.0.1](https://github.com/oclif/plugin-version/compare/v1.0.0...v1.0.1) (2021-12-01)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * remove cli-ux dependency ([7d0930e](https://github.com/oclif/plugin-version/commit/7d0930ee98353ba99b899c59b6b6ff56a0467d6b))
47
-
48
- ## [1.0.0](https://github.com/oclif/plugin-version/compare/v0.1.34...v1.0.0) (2021-12-01)
49
-
50
-
51
- ### Features
52
-
53
- * revive plugin-version ([3f2e733](https://github.com/oclif/plugin-version/commit/3f2e7332686547fbd92428b90931cd436a25e748))
54
-
55
- <a name="0.1.34"></a>
56
- ## [0.1.34](https://github.com/anycli/plugin-version/compare/cc4973888155762576863aed3cccec98c8a779e4...v0.1.34) (2018-02-03)
57
-
58
-
59
- ### Bug Fixes
60
-
61
- * remove hook in favor of flag ([13e347b](https://github.com/anycli/plugin-version/commit/13e347b))
62
-
63
- <a name="0.1.33"></a>
64
- ## [0.1.33](https://github.com/anycli/plugin-version/compare/f600072af0ccf146f3b53aad58f701f82235521e...v0.1.33) (2018-02-03)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * fixed manifest command ([cc49738](https://github.com/anycli/plugin-version/commit/cc49738))
70
- * updated anycli-dev ([499b120](https://github.com/anycli/plugin-version/commit/499b120))
71
-
72
- <a name="0.1.32"></a>
73
- ## [0.1.32](https://github.com/anycli/plugin-version/compare/cfb1acffbfcf1d727362d0f9c6ee4b8d688e470f...v0.1.32) (2018-02-03)
74
-
75
-
76
- ### Bug Fixes
77
-
78
- * bump deps ([f600072](https://github.com/anycli/plugin-version/commit/f600072))
79
-
80
- <a name="0.1.31"></a>
81
- ## [0.1.31](https://github.com/anycli/plugin-version/compare/1ebf772d2e592f3cf2f4cf4b939b0cfccf1203ac...v0.1.31) (2018-02-03)
82
-
83
-
84
- ### Bug Fixes
85
-
86
- * updated config ([cfb1acf](https://github.com/anycli/plugin-version/commit/cfb1acf))
87
-
88
- <a name="0.1.30"></a>
89
- ## [0.1.30](https://github.com/anycli/plugin-version/compare/c762f2694487ceff0221e6181458fce7609aa5f5...v0.1.30) (2018-02-02)
90
-
91
-
92
- ### Bug Fixes
93
-
94
- * fixing manifest ([1ebf772](https://github.com/anycli/plugin-version/commit/1ebf772))
95
-
96
- <a name="0.1.29"></a>
97
- ## [0.1.29](https://github.com/anycli/plugin-version/compare/082699f73f6fb582ebfdfed9ef55de223d0bf568...v0.1.29) (2018-02-02)
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * clear cache ([c762f26](https://github.com/anycli/plugin-version/commit/c762f26))
103
-
104
- <a name="0.1.28"></a>
105
- ## [0.1.28](https://github.com/anycli/plugin-version/compare/1635e114e0f0f416dca4a4353c6e59f0f33b98b3...v0.1.28) (2018-02-02)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * updated dev-cli ([082699f](https://github.com/anycli/plugin-version/commit/082699f))
111
-
112
- <a name="0.1.27"></a>
113
- ## [0.1.27](https://github.com/anycli/plugin-version/compare/8b4c3a960687a1e49e1eb11a35983255a8ca5b83...v0.1.27) (2018-02-02)
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * testing release ([1635e11](https://github.com/anycli/plugin-version/commit/1635e11))
119
-
120
- <a name="0.1.26"></a>
121
- ## [0.1.26](https://github.com/anycli/plugin-version/compare/v0.1.25...v0.1.26) (2018-02-02)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * testing release ([8b4c3a9](https://github.com/anycli/plugin-version/commit/8b4c3a9))
127
-
128
- <a name="0.1.23"></a>
129
- ## [0.1.23](https://github.com/anycli/plugin-version/compare/81ad2def21146ca848a0277ce5790b807e0592e4...v0.1.23) (2018-02-02)
130
-
131
-
132
- ### Bug Fixes
133
-
134
- * fixed manifest location ([0526abd](https://github.com/anycli/plugin-version/commit/0526abd))
135
-
136
- <a name="0.1.22"></a>
137
- ## [0.1.22](https://github.com/anycli/plugin-version/compare/2203a5fb396ec00a53f10fc9fa7516245b4b75b8...v0.1.22) (2018-02-02)
138
-
139
-
140
- ### Bug Fixes
141
-
142
- * fixed manifest location ([81ad2de](https://github.com/anycli/plugin-version/commit/81ad2de))
143
-
144
- <a name="0.1.21"></a>
145
- ## [0.1.21](https://github.com/anycli/plugin-version/compare/948427739fcb15375415515c320846e4a68e9e0b...v0.1.21) (2018-02-02)
146
-
147
-
148
- ### Bug Fixes
149
-
150
- * add plugin manifest ([2203a5f](https://github.com/anycli/plugin-version/commit/2203a5f))
151
-
152
- <a name="0.1.20"></a>
153
- ## [0.1.20](https://github.com/anycli/plugin-version/compare/fcd0d6c0fb2a7c1ff2882451c8bec76d734b6e9a...v0.1.20) (2018-02-02)
154
-
155
-
156
- ### Bug Fixes
157
-
158
- * ran generator ([9484277](https://github.com/anycli/plugin-version/commit/9484277))
159
-
160
- <a name="0.1.19"></a>
161
- ## [0.1.19](https://github.com/anycli/version/compare/b97d3525ee6fa2fd89846fc1989177f9096f379e...v0.1.19) (2018-02-01)
162
-
163
-
164
- ### Bug Fixes
165
-
166
- * updated command ([8a2f219](https://github.com/anycli/version/commit/8a2f219))
167
-
168
- <a name="0.1.18"></a>
169
- ## [0.1.18](https://github.com/anycli/version/compare/eb3925513fc4c79a689ca741bca161ac25e1e6a4...v0.1.18) (2018-01-31)
170
-
171
-
172
- ### Bug Fixes
173
-
174
- * updated command ([b97d352](https://github.com/anycli/version/commit/b97d352))
175
-
176
- <a name="0.1.17"></a>
177
- ## [0.1.17](https://github.com/anycli/version/compare/59156f63ac82a9e31c00ce7489c339a3f094ed78...v0.1.17) (2018-01-31)
178
-
179
-
180
- ### Bug Fixes
181
-
182
- * updated engine ([eb39255](https://github.com/anycli/version/commit/eb39255))
183
-
184
- <a name="0.1.16"></a>
185
- ## [0.1.16](https://github.com/anycli/version/compare/399ae7ca19b17a77b14c5ca65b273bad74b7aedf...v0.1.16) (2018-01-31)
186
-
187
-
188
- ### Bug Fixes
189
-
190
- * typescript 2.7 ([59156f6](https://github.com/anycli/version/commit/59156f6))
191
-
192
- <a name="0.1.15"></a>
193
- ## [0.1.15](https://github.com/anycli/version/compare/bc360cfe7554494e0ae437c15d8f8c346d25987c...v0.1.15) (2018-01-31)
194
-
195
-
196
- ### Bug Fixes
197
-
198
- * updated engine ([399ae7c](https://github.com/anycli/version/commit/399ae7c))
199
-
200
- <a name="0.1.14"></a>
201
- ## [0.1.14](https://github.com/anycli/version/compare/13ab8aac7b7a5b4063edf24f34ed5956c816d658...v0.1.14) (2018-01-31)
202
-
203
-
204
- ### Bug Fixes
205
-
206
- * anycli rename ([bc360cf](https://github.com/anycli/version/commit/bc360cf))
207
-
208
- <a name="0.1.13"></a>
209
- ## [0.1.13](https://github.com/dxcli/version/compare/36a7faf38dd1f8fe7817c6c7b18c528d9511623b...v0.1.13) (2018-01-29)
210
-
211
-
212
- ### Bug Fixes
213
-
214
- * ran generator ([19d3a46](https://github.com/dxcli/version/commit/19d3a46))
215
-
216
- <a name="0.1.12"></a>
217
- ## [0.1.12](https://github.com/dxcli/version/compare/d620e6ea18e72bd715b3cd0cab8a5ac04a1caf21...v0.1.12) (2018-01-28)
218
-
219
-
220
- ### Bug Fixes
221
-
222
- * updated deps and moved config to peer ([36a7faf](https://github.com/dxcli/version/commit/36a7faf))
223
-
224
- <a name="0.1.11"></a>
225
- ## [0.1.11](https://github.com/dxcli/version/compare/b48ae5bfcc901e0de0a45f510e7faa764a79b9f0...v0.1.11) (2018-01-28)
226
-
227
-
228
- ### Bug Fixes
229
-
230
- * bump deps ([d620e6e](https://github.com/dxcli/version/commit/d620e6e))
231
-
232
- <a name="0.1.10"></a>
233
- ## [0.1.10](https://github.com/dxcli/version/compare/bdc00c1cf6868eb0fe665805546b20949ea5debc...v0.1.10) (2018-01-28)
234
-
235
-
236
- ### Bug Fixes
237
-
238
- * move some deps to peer ([83d27be](https://github.com/dxcli/version/commit/83d27be))
239
-
240
- <a name="0.1.9"></a>
241
- ## [0.1.9](https://github.com/dxcli/version/compare/61722bdbbbfcb9406a2434529d6774fe3eb5f33b...v0.1.9) (2018-01-28)
242
-
243
-
244
- ### Bug Fixes
245
-
246
- * updated cli-ux ([bdc00c1](https://github.com/dxcli/version/commit/bdc00c1))
247
-
248
- <a name="0.1.8"></a>
249
- ## [0.1.8](https://github.com/dxcli/version/compare/f5632a2f3e12745a5dc9d531aa4e6f4c18b58b76...v0.1.8) (2018-01-28)
250
-
251
-
252
- ### Bug Fixes
253
-
254
- * updated deps ([61722bd](https://github.com/dxcli/version/commit/61722bd))
255
-
256
- <a name="0.1.7"></a>
257
- ## [0.1.7](https://github.com/dxcli/version/compare/5b57dc75115af5894f9bd120eae4b355b32ecb63...v0.1.7) (2018-01-28)
258
-
259
-
260
- ### Bug Fixes
261
-
262
- * ran generator ([f5632a2](https://github.com/dxcli/version/commit/f5632a2))
263
-
264
- <a name="0.1.6"></a>
265
- ## [0.1.6](https://github.com/dxcli/version/compare/a99fd98219bcd1959315d46df8f521381e623a5a...v0.1.6) (2018-01-27)
266
-
267
-
268
- ### Bug Fixes
269
-
270
- * updated deps ([5b57dc7](https://github.com/dxcli/version/commit/5b57dc7))
271
-
272
- <a name="0.1.5"></a>
273
- ## [0.1.5](https://github.com/dxcli/version/compare/b4eadb4a3206fedc9dde7e288c7815de5561623f...v0.1.5) (2018-01-25)
274
-
275
-
276
- ### Bug Fixes
277
-
278
- * updated deps ([a99fd98](https://github.com/dxcli/version/commit/a99fd98))
279
-
280
- <a name="0.1.4"></a>
281
- ## [0.1.4](https://github.com/dxcli/version/compare/681e3cd66ff10beb93819cc746cf4327e74fe121...v0.1.4) (2018-01-20)
282
-
283
-
284
- ### Bug Fixes
285
-
286
- * update deps ([b4eadb4](https://github.com/dxcli/version/commit/b4eadb4))
287
-
288
- <a name="0.1.3"></a>
289
- ## [0.1.3](https://github.com/dxcli/version/compare/cd2303ba1653a6911779234a4f2842379104ddb9...v0.1.3) (2018-01-20)
290
-
291
-
292
- ### Bug Fixes
293
-
294
- * update deps ([681e3cd](https://github.com/dxcli/version/commit/681e3cd))
295
-
296
- <a name="0.1.2"></a>
297
- ## [0.1.2](https://github.com/dxcli/version/compare/389957984170a73c8ea461271eb4131ebd018415...v0.1.2) (2018-01-19)
298
-
299
-
300
- ### Bug Fixes
301
-
302
- * set dirname ([cd2303b](https://github.com/dxcli/version/commit/cd2303b))
303
- * updated command ([1045140](https://github.com/dxcli/version/commit/1045140))
304
-
305
- <a name="0.1.1"></a>
306
- ## [0.1.1](https://github.com/dxcli/version/compare/10782d6afe883a9f28b77f75ac8e3fc8d205b01d...v0.1.1) (2018-01-19)
307
-
308
-
309
- ### Bug Fixes
310
-
311
- * added hook test ([3899579](https://github.com/dxcli/version/commit/3899579))
312
-
313
- <a name="0.1.0"></a>
314
- # [0.1.0](https://github.com/dxcli/version/compare/dc31042ddccbd4a62321288c983ed2f73fda4a53...v0.1.0) (2018-01-19)
315
-
316
-
317
- ### Bug Fixes
318
-
319
- * updated deps ([10782d6](https://github.com/dxcli/version/commit/10782d6))
320
-
321
-
322
- ### Features
323
-
324
- * added hook ([c363677](https://github.com/dxcli/version/commit/c363677))
325
-
326
- <a name="0.0.1"></a>
327
- ## [0.0.1](https://github.com/dxcli/version/compare/0b57148487e34e668625f1233fc955e93e43f5a3...v0.0.1) (2018-01-19)
328
-
329
-
330
- ### Bug Fixes
331
-
332
- * updated command ([dc31042](https://github.com/dxcli/version/commit/dc31042))