@zowe/cli 6.40.20 → 6.40.21
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/lib/CliConstants.d.ts +63 -0
- package/lib/CliConstants.js +85 -0
- package/lib/CliConstants.js.map +1 -0
- package/lib/Constants.d.ts +2 -57
- package/lib/Constants.js +2 -64
- package/lib/Constants.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +13 -13
- package/scripts/printSuccessMessage.js +15 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class to contain CLI constants
|
|
3
|
+
* @export
|
|
4
|
+
* @class CliConstants
|
|
5
|
+
*/
|
|
6
|
+
export declare class CliConstants {
|
|
7
|
+
/**
|
|
8
|
+
* Custom log location to prevent logging to default folder based on the package name
|
|
9
|
+
* @static
|
|
10
|
+
* @memberof CliConstants
|
|
11
|
+
*/
|
|
12
|
+
static readonly LOG_LOCATION = "zowe/logs/zowe.log";
|
|
13
|
+
/**
|
|
14
|
+
* Display name
|
|
15
|
+
* @static
|
|
16
|
+
* @memberof CliConstants
|
|
17
|
+
*/
|
|
18
|
+
static readonly DISPLAY_NAME = "Zowe CLI";
|
|
19
|
+
/**
|
|
20
|
+
* Binary executable name
|
|
21
|
+
* @static
|
|
22
|
+
* @memberof CliConstants
|
|
23
|
+
*/
|
|
24
|
+
static readonly BINARY_NAME = "zowe";
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* Documentation link for the CLI
|
|
28
|
+
* @static
|
|
29
|
+
* @memberof CliConstants
|
|
30
|
+
*/
|
|
31
|
+
static readonly DOCUMENTATION_LINK = "https://docs.zowe.org";
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* Support link for zowe
|
|
35
|
+
* @static
|
|
36
|
+
* @memberof CliConstants
|
|
37
|
+
*/
|
|
38
|
+
static readonly SUPPORT_LINK = "https://www.zowe.org";
|
|
39
|
+
/**
|
|
40
|
+
* Description of product
|
|
41
|
+
* @static
|
|
42
|
+
* @memberof CliConstants
|
|
43
|
+
*/
|
|
44
|
+
static readonly DESCRIPTION: string;
|
|
45
|
+
/**
|
|
46
|
+
* Home environment variable
|
|
47
|
+
* @static
|
|
48
|
+
* @memberof CliConstants
|
|
49
|
+
*/
|
|
50
|
+
static readonly HOME_ENV_KEY = "ZOWE_CLI_HOME";
|
|
51
|
+
/**
|
|
52
|
+
* Prefix for environmental variable settings used by Imperative
|
|
53
|
+
* @static
|
|
54
|
+
* @memberof CliConstants
|
|
55
|
+
*/
|
|
56
|
+
static readonly ENV_PREFIX = "ZOWE";
|
|
57
|
+
/**
|
|
58
|
+
* Home directory
|
|
59
|
+
* @static
|
|
60
|
+
* @memberof CliConstants
|
|
61
|
+
*/
|
|
62
|
+
static readonly HOME_DIR = "~/.zowe";
|
|
63
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.CliConstants = void 0;
|
|
14
|
+
/**
|
|
15
|
+
* Class to contain CLI constants
|
|
16
|
+
* @export
|
|
17
|
+
* @class CliConstants
|
|
18
|
+
*/
|
|
19
|
+
class CliConstants {
|
|
20
|
+
}
|
|
21
|
+
exports.CliConstants = CliConstants;
|
|
22
|
+
/**
|
|
23
|
+
* Custom log location to prevent logging to default folder based on the package name
|
|
24
|
+
* @static
|
|
25
|
+
* @memberof CliConstants
|
|
26
|
+
*/
|
|
27
|
+
CliConstants.LOG_LOCATION = "zowe/logs/zowe.log";
|
|
28
|
+
/**
|
|
29
|
+
* Display name
|
|
30
|
+
* @static
|
|
31
|
+
* @memberof CliConstants
|
|
32
|
+
*/
|
|
33
|
+
CliConstants.DISPLAY_NAME = "Zowe CLI";
|
|
34
|
+
/**
|
|
35
|
+
* Binary executable name
|
|
36
|
+
* @static
|
|
37
|
+
* @memberof CliConstants
|
|
38
|
+
*/
|
|
39
|
+
CliConstants.BINARY_NAME = "zowe";
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* Documentation link for the CLI
|
|
43
|
+
* @static
|
|
44
|
+
* @memberof CliConstants
|
|
45
|
+
*/
|
|
46
|
+
CliConstants.DOCUMENTATION_LINK = "https://docs.zowe.org";
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* Support link for zowe
|
|
50
|
+
* @static
|
|
51
|
+
* @memberof CliConstants
|
|
52
|
+
*/
|
|
53
|
+
CliConstants.SUPPORT_LINK = "https://www.zowe.org";
|
|
54
|
+
/**
|
|
55
|
+
* Description of product
|
|
56
|
+
* @static
|
|
57
|
+
* @memberof CliConstants
|
|
58
|
+
*/
|
|
59
|
+
CliConstants.DESCRIPTION = `Welcome to ${CliConstants.DISPLAY_NAME}!
|
|
60
|
+
|
|
61
|
+
${CliConstants.DISPLAY_NAME} is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.
|
|
62
|
+
|
|
63
|
+
For additional ${CliConstants.DISPLAY_NAME} documentation, visit ${CliConstants.DOCUMENTATION_LINK}
|
|
64
|
+
|
|
65
|
+
For ${CliConstants.DISPLAY_NAME} support, visit ${CliConstants.SUPPORT_LINK}
|
|
66
|
+
`;
|
|
67
|
+
/**
|
|
68
|
+
* Home environment variable
|
|
69
|
+
* @static
|
|
70
|
+
* @memberof CliConstants
|
|
71
|
+
*/
|
|
72
|
+
CliConstants.HOME_ENV_KEY = "ZOWE_CLI_HOME";
|
|
73
|
+
/**
|
|
74
|
+
* Prefix for environmental variable settings used by Imperative
|
|
75
|
+
* @static
|
|
76
|
+
* @memberof CliConstants
|
|
77
|
+
*/
|
|
78
|
+
CliConstants.ENV_PREFIX = "ZOWE";
|
|
79
|
+
/**
|
|
80
|
+
* Home directory
|
|
81
|
+
* @static
|
|
82
|
+
* @memberof CliConstants
|
|
83
|
+
*/
|
|
84
|
+
CliConstants.HOME_DIR = "~/.zowe";
|
|
85
|
+
//# sourceMappingURL=CliConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CliConstants.js","sourceRoot":"","sources":["../src/CliConstants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF;;;;GAIG;AACH,MAAa,YAAY;;AAAzB,oCA2EC;AAzEG;;;;GAIG;AACoB,yBAAY,GAAG,oBAAoB,CAAC;AAE3D;;;;GAIG;AACoB,yBAAY,GAAG,UAAU,CAAC;AAEjD;;;;GAIG;AACoB,wBAAW,GAAG,MAAM,CAAC;AAE5C;;;;;GAKG;AACoB,+BAAkB,GAAG,uBAAuB,CAAC;AAEpE;;;;;GAKG;AACoB,yBAAY,GAAG,sBAAsB,CAAC;AAE7D;;;;GAIG;AACoB,wBAAW,GAClC,cAAc,YAAY,CAAC,YAAY;;EAEzC,YAAY,CAAC,YAAY;;iBAEV,YAAY,CAAC,YAAY,yBAAyB,YAAY,CAAC,kBAAkB;;MAE5F,YAAY,CAAC,YAAY,mBAAmB,YAAY,CAAC,YAAY;CAC1E,CAAC;AAEE;;;;GAIG;AACoB,yBAAY,GAAG,eAAe,CAAC;AAGtD;;;;GAIG;AACoB,uBAAU,GAAG,MAAM,CAAC;AAE3C;;;;GAIG;AACoB,qBAAQ,GAAG,SAAS,CAAC"}
|
package/lib/Constants.d.ts
CHANGED
|
@@ -1,66 +1,11 @@
|
|
|
1
|
+
import { CliConstants } from "./CliConstants";
|
|
1
2
|
import { ICommandOptionDefinition, ICommandExampleDefinition } from "@zowe/imperative";
|
|
2
3
|
/**
|
|
3
4
|
* Class to contain constants
|
|
4
5
|
* @export
|
|
5
6
|
* @class Constants
|
|
6
7
|
*/
|
|
7
|
-
export declare class Constants {
|
|
8
|
-
/**
|
|
9
|
-
* Custom log location to prevent logging to default folder based on the package name
|
|
10
|
-
* @static
|
|
11
|
-
* @memberof Constants
|
|
12
|
-
*/
|
|
13
|
-
static readonly LOG_LOCATION = "zowe/logs/zowe.log";
|
|
14
|
-
/**
|
|
15
|
-
* Display name
|
|
16
|
-
* @static
|
|
17
|
-
* @memberof Constants
|
|
18
|
-
*/
|
|
19
|
-
static readonly DISPLAY_NAME = "Zowe CLI";
|
|
20
|
-
/**
|
|
21
|
-
* Binary executable name
|
|
22
|
-
* @static
|
|
23
|
-
* @memberof Constants
|
|
24
|
-
*/
|
|
25
|
-
static readonly BINARY_NAME = "zowe";
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* Documentation link for the CLI
|
|
29
|
-
* @static
|
|
30
|
-
* @memberof Constants
|
|
31
|
-
*/
|
|
32
|
-
static readonly DOCUMENTATION_LINK = "https://docs.zowe.org";
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* Support link for zowe
|
|
36
|
-
* @static
|
|
37
|
-
* @memberof Constants
|
|
38
|
-
*/
|
|
39
|
-
static readonly SUPPORT_LINK = "https://www.zowe.org";
|
|
40
|
-
/**
|
|
41
|
-
* Description of product
|
|
42
|
-
* @static
|
|
43
|
-
* @memberof Constants
|
|
44
|
-
*/
|
|
45
|
-
static readonly DESCRIPTION: string;
|
|
46
|
-
/**
|
|
47
|
-
* Home environment variable
|
|
48
|
-
* @static
|
|
49
|
-
* @memberof Constants
|
|
50
|
-
*/
|
|
51
|
-
static readonly HOME_ENV_KEY = "ZOWE_CLI_HOME";
|
|
52
|
-
/**
|
|
53
|
-
* Prefix for environmental variable settings used by Imperative
|
|
54
|
-
* @static
|
|
55
|
-
* @memberof Constants
|
|
56
|
-
*/
|
|
57
|
-
static readonly ENV_PREFIX = "ZOWE";
|
|
58
|
-
/**
|
|
59
|
-
* Home directory
|
|
60
|
-
* @static
|
|
61
|
-
* @memberof Constants
|
|
62
|
-
*/
|
|
63
|
-
static readonly HOME_DIR = "~/.zowe";
|
|
8
|
+
export declare class Constants extends CliConstants {
|
|
64
9
|
static BASE_CONNECTION_OPTION_GROUP: string;
|
|
65
10
|
/**
|
|
66
11
|
* Option used in profile creation and commands for hostname
|
package/lib/Constants.js
CHANGED
|
@@ -11,78 +11,16 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Constants = void 0;
|
|
14
|
+
const CliConstants_1 = require("./CliConstants");
|
|
14
15
|
const imperative_1 = require("@zowe/imperative");
|
|
15
16
|
/**
|
|
16
17
|
* Class to contain constants
|
|
17
18
|
* @export
|
|
18
19
|
* @class Constants
|
|
19
20
|
*/
|
|
20
|
-
class Constants {
|
|
21
|
+
class Constants extends CliConstants_1.CliConstants {
|
|
21
22
|
}
|
|
22
23
|
exports.Constants = Constants;
|
|
23
|
-
/**
|
|
24
|
-
* Custom log location to prevent logging to default folder based on the package name
|
|
25
|
-
* @static
|
|
26
|
-
* @memberof Constants
|
|
27
|
-
*/
|
|
28
|
-
Constants.LOG_LOCATION = "zowe/logs/zowe.log";
|
|
29
|
-
/**
|
|
30
|
-
* Display name
|
|
31
|
-
* @static
|
|
32
|
-
* @memberof Constants
|
|
33
|
-
*/
|
|
34
|
-
Constants.DISPLAY_NAME = "Zowe CLI";
|
|
35
|
-
/**
|
|
36
|
-
* Binary executable name
|
|
37
|
-
* @static
|
|
38
|
-
* @memberof Constants
|
|
39
|
-
*/
|
|
40
|
-
Constants.BINARY_NAME = "zowe";
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* Documentation link for the CLI
|
|
44
|
-
* @static
|
|
45
|
-
* @memberof Constants
|
|
46
|
-
*/
|
|
47
|
-
Constants.DOCUMENTATION_LINK = "https://docs.zowe.org";
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* Support link for zowe
|
|
51
|
-
* @static
|
|
52
|
-
* @memberof Constants
|
|
53
|
-
*/
|
|
54
|
-
Constants.SUPPORT_LINK = "https://www.zowe.org";
|
|
55
|
-
/**
|
|
56
|
-
* Description of product
|
|
57
|
-
* @static
|
|
58
|
-
* @memberof Constants
|
|
59
|
-
*/
|
|
60
|
-
Constants.DESCRIPTION = `Welcome to ${Constants.DISPLAY_NAME}!
|
|
61
|
-
|
|
62
|
-
${Constants.DISPLAY_NAME} is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.
|
|
63
|
-
|
|
64
|
-
For additional ${Constants.DISPLAY_NAME} documentation, visit ${Constants.DOCUMENTATION_LINK}
|
|
65
|
-
|
|
66
|
-
For ${Constants.DISPLAY_NAME} support, visit ${Constants.SUPPORT_LINK}
|
|
67
|
-
`;
|
|
68
|
-
/**
|
|
69
|
-
* Home environment variable
|
|
70
|
-
* @static
|
|
71
|
-
* @memberof Constants
|
|
72
|
-
*/
|
|
73
|
-
Constants.HOME_ENV_KEY = "ZOWE_CLI_HOME";
|
|
74
|
-
/**
|
|
75
|
-
* Prefix for environmental variable settings used by Imperative
|
|
76
|
-
* @static
|
|
77
|
-
* @memberof Constants
|
|
78
|
-
*/
|
|
79
|
-
Constants.ENV_PREFIX = "ZOWE";
|
|
80
|
-
/**
|
|
81
|
-
* Home directory
|
|
82
|
-
* @static
|
|
83
|
-
* @memberof Constants
|
|
84
|
-
*/
|
|
85
|
-
Constants.HOME_DIR = "~/.zowe";
|
|
86
24
|
Constants.BASE_CONNECTION_OPTION_GROUP = "Base Connection Options";
|
|
87
25
|
/**
|
|
88
26
|
* Option used in profile creation and commands for hostname
|
package/lib/Constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAAsG;AAE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;;;GAIG;AACoB,8BAAoB,GAA8B;IACrE,WAAW,EAAE,wFAAwF;IACrG,OAAO,EAAE,EAAE;CACd,CAAC;AAEF;;;;GAIG;AACoB,8BAAoB,GAA8B;IACrE,WAAW,EAAE,gFAAgF;IAC7F,OAAO,EAAE,cAAc;CAC1B,CAAC;AAEF;;;;GAIG;AACoB,8BAAoB,GAAG,0CAA0C,CAAC;AAEzF;;;;GAIG;AACoB,kCAAwB,GAAG,4FAA4F;IAC1I,2GAA2G,CAAC;AAEhH;;;;GAIG;AACoB,+BAAqB,GAA8B;IACtE,WAAW,EAAE,wGAAwG;IACrH,OAAO,EAAE,EAAE;CACd,CAAC;AAEF;;;;GAIG;AACoB,+BAAqB,GAA8B;IACtE,WAAW,EAAE,kFAAkF;IAC/F,OAAO,EAAE,uBAAuB;CACnC,CAAC;AAEF;;GAEG;AACW,wCAA8B,mCACrC,SAAS,CAAC,sBAAsB,KACnC,eAAe,EAAE,EAAE,MAAM,EAAE,0BAAa,CAAC,eAAe,EAAE,IAC5D"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * as imperative from "@zowe/imperative";
|
|
1
2
|
export { Constants } from "./Constants";
|
|
2
3
|
export * from "./Utils";
|
|
3
4
|
export * from "@zowe/core-for-zowe-sdk";
|
|
@@ -9,4 +10,3 @@ export * from "@zowe/zos-tso-for-zowe-sdk";
|
|
|
9
10
|
export * from "@zowe/zos-uss-for-zowe-sdk";
|
|
10
11
|
export * from "@zowe/zos-workflows-for-zowe-sdk";
|
|
11
12
|
export * from "@zowe/zosmf-for-zowe-sdk";
|
|
12
|
-
export * as imperative from "@zowe/imperative";
|
package/lib/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
20
20
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.imperative = require("@zowe/imperative");
|
|
23
24
|
var Constants_1 = require("./Constants");
|
|
24
25
|
Object.defineProperty(exports, "Constants", { enumerable: true, get: function () { return Constants_1.Constants; } });
|
|
25
26
|
__exportStar(require("./Utils"), exports);
|
|
@@ -32,5 +33,4 @@ __exportStar(require("@zowe/zos-tso-for-zowe-sdk"), exports);
|
|
|
32
33
|
__exportStar(require("@zowe/zos-uss-for-zowe-sdk"), exports);
|
|
33
34
|
__exportStar(require("@zowe/zos-workflows-for-zowe-sdk"), exports);
|
|
34
35
|
__exportStar(require("@zowe/zosmf-for-zowe-sdk"), exports);
|
|
35
|
-
exports.imperative = require("@zowe/imperative");
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,0CAAwB;AACxB,0DAAwC;AACxC,kEAAgD;AAChD,iEAA+C;AAC/C,+DAA6C;AAC7C,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,iDAA+C;AAC/C,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,0CAAwB;AACxB,0DAAwC;AACxC,kEAAgD;AAChD,iEAA+C;AAC/C,+DAA6C;AAC7C,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zowe/cli",
|
|
3
|
-
"version": "6.40.
|
|
3
|
+
"version": "6.40.21",
|
|
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": "Zowe",
|
|
6
6
|
"license": "EPL-2.0",
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
"preshrinkwrap": "node ../../scripts/rewriteShrinkwrap.js"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@zowe/core-for-zowe-sdk": "6.40.
|
|
59
|
-
"@zowe/imperative": "4.18.
|
|
58
|
+
"@zowe/core-for-zowe-sdk": "6.40.21",
|
|
59
|
+
"@zowe/imperative": "4.18.20",
|
|
60
60
|
"@zowe/perf-timing": "1.0.7",
|
|
61
|
-
"@zowe/provisioning-for-zowe-sdk": "6.40.
|
|
62
|
-
"@zowe/zos-console-for-zowe-sdk": "6.40.
|
|
63
|
-
"@zowe/zos-files-for-zowe-sdk": "6.40.
|
|
64
|
-
"@zowe/zos-jobs-for-zowe-sdk": "6.40.
|
|
65
|
-
"@zowe/zos-logs-for-zowe-sdk": "6.40.
|
|
66
|
-
"@zowe/zos-tso-for-zowe-sdk": "6.40.
|
|
67
|
-
"@zowe/zos-uss-for-zowe-sdk": "6.40.
|
|
68
|
-
"@zowe/zos-workflows-for-zowe-sdk": "6.40.
|
|
69
|
-
"@zowe/zosmf-for-zowe-sdk": "6.40.
|
|
61
|
+
"@zowe/provisioning-for-zowe-sdk": "6.40.21",
|
|
62
|
+
"@zowe/zos-console-for-zowe-sdk": "6.40.21",
|
|
63
|
+
"@zowe/zos-files-for-zowe-sdk": "6.40.21",
|
|
64
|
+
"@zowe/zos-jobs-for-zowe-sdk": "6.40.21",
|
|
65
|
+
"@zowe/zos-logs-for-zowe-sdk": "6.40.21",
|
|
66
|
+
"@zowe/zos-tso-for-zowe-sdk": "6.40.21",
|
|
67
|
+
"@zowe/zos-uss-for-zowe-sdk": "6.40.21",
|
|
68
|
+
"@zowe/zos-workflows-for-zowe-sdk": "6.40.21",
|
|
69
|
+
"@zowe/zosmf-for-zowe-sdk": "6.40.21",
|
|
70
70
|
"get-stdin": "7.0.0",
|
|
71
71
|
"minimatch": "3.1.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@types/node": "^
|
|
74
|
+
"@types/node": "^16.11.7",
|
|
75
75
|
"eslint": "^7.32.0",
|
|
76
76
|
"js-yaml": "^3.13.1",
|
|
77
77
|
"madge": "^4.0.1",
|
|
@@ -9,8 +9,21 @@
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
function getImperative() {
|
|
13
|
+
try {
|
|
14
|
+
return require("@zowe/imperative");
|
|
15
|
+
} catch (err) {
|
|
16
|
+
if (err.code === "ERR_MODULE_NOT_FOUND" || err.code === "MODULE_NOT_FOUND") {
|
|
17
|
+
require("ts-node/register");
|
|
18
|
+
return require(require("path").resolve(__dirname, "../../imperative/src/utilities/src/TextUtils"));
|
|
19
|
+
} else {
|
|
20
|
+
throw err;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
function printSuccessMessage() {
|
|
13
|
-
const imperative =
|
|
26
|
+
const imperative = getImperative();
|
|
14
27
|
|
|
15
28
|
const installSuccessMessage = "Zowe CLI has been successfully installed. " +
|
|
16
29
|
"You can safely ignore all non-plug-in related errors and warnings. " +
|
|
@@ -20,4 +33,4 @@ function printSuccessMessage() {
|
|
|
20
33
|
console.log("\n" + table + "\n");
|
|
21
34
|
}
|
|
22
35
|
|
|
23
|
-
printSuccessMessage();
|
|
36
|
+
printSuccessMessage();
|