@zowe/cli 6.33.2 → 6.33.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.
- package/package.json +6 -6
- package/scripts/printSuccessMessage.js +23 -0
- package/scripts/validatePlugins.js +18 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zowe/cli",
|
|
3
|
-
"version": "6.33.
|
|
3
|
+
"version": "6.33.3",
|
|
4
4
|
"description": "Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.",
|
|
5
5
|
"author": "Broadcom",
|
|
6
6
|
"license": "EPL-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typings": "lib/index.d.ts",
|
|
43
43
|
"scripts": {
|
|
44
44
|
"preinstall": "node ./scripts/preinstall",
|
|
45
|
-
"postinstall": "node ./scripts/validatePlugins",
|
|
45
|
+
"postinstall": "node ./scripts/validatePlugins && node ./scripts/printSuccessMessage",
|
|
46
46
|
"build": "tsc --pretty",
|
|
47
47
|
"watch": "tsc --pretty --watch",
|
|
48
48
|
"clean": "rimraf lib",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@zowe/perf-timing": "1.0.7",
|
|
60
60
|
"@zowe/provisioning-for-zowe-sdk": "6.33.2",
|
|
61
61
|
"@zowe/zos-console-for-zowe-sdk": "6.33.2",
|
|
62
|
-
"@zowe/zos-files-for-zowe-sdk": "6.33.
|
|
63
|
-
"@zowe/zos-jobs-for-zowe-sdk": "6.33.
|
|
62
|
+
"@zowe/zos-files-for-zowe-sdk": "6.33.3",
|
|
63
|
+
"@zowe/zos-jobs-for-zowe-sdk": "6.33.3",
|
|
64
64
|
"@zowe/zos-tso-for-zowe-sdk": "6.33.2",
|
|
65
|
-
"@zowe/zos-uss-for-zowe-sdk": "6.33.
|
|
66
|
-
"@zowe/zos-workflows-for-zowe-sdk": "6.33.
|
|
65
|
+
"@zowe/zos-uss-for-zowe-sdk": "6.33.3",
|
|
66
|
+
"@zowe/zos-workflows-for-zowe-sdk": "6.33.3",
|
|
67
67
|
"@zowe/zosmf-for-zowe-sdk": "6.33.2",
|
|
68
68
|
"get-stdin": "7.0.0",
|
|
69
69
|
"minimatch": "3.0.4"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
3
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
4
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
7
|
+
*
|
|
8
|
+
* Copyright Contributors to the Zowe Project.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
function printSuccessMessage() {
|
|
13
|
+
const imperative = require("@zowe/imperative");
|
|
14
|
+
|
|
15
|
+
const installSuccessMessage = "Zowe CLI has been successfully installed. " +
|
|
16
|
+
"You can safely ignore all non-plug-in related errors and warnings. " +
|
|
17
|
+
"Please check above for any plug-in related issues.";
|
|
18
|
+
|
|
19
|
+
const table = imperative.TextUtils.getTable([[installSuccessMessage]], "yellow", undefined, false, true, true);
|
|
20
|
+
console.log("\n" + table + "\n");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
printSuccessMessage();
|
|
@@ -23,21 +23,25 @@
|
|
|
23
23
|
* should always have a main program. So, we must check if lib/main.js exists.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
function validatePlugins() {
|
|
27
|
+
const fs = require('fs');
|
|
27
28
|
|
|
28
|
-
// only run the zowe command when main has been built
|
|
29
|
-
const zowePgm = process.cwd() + "/lib/main.js";
|
|
30
|
-
if (fs.existsSync(zowePgm)) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
// only run the zowe command when main has been built
|
|
30
|
+
const zowePgm = process.cwd() + "/lib/main.js";
|
|
31
|
+
if (fs.existsSync(zowePgm)) {
|
|
32
|
+
/* Imperative gets its root directory from the mainModule filename,
|
|
33
|
+
* which is currently set to this script. Make it look like the script
|
|
34
|
+
* being run by NodeJS is main.js.
|
|
35
|
+
*/
|
|
36
|
+
process.mainModule.filename = zowePgm;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
// add the parameters for the zowe command to validate plugins
|
|
39
|
+
process.argv.push("plugins");
|
|
40
|
+
process.argv.push("validate");
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
console.log("Since you re-installed Zowe CLI, we are re-validating any plugins.");
|
|
43
|
+
require(zowePgm);
|
|
44
|
+
}
|
|
43
45
|
}
|
|
46
|
+
|
|
47
|
+
validatePlugins();
|