@zowe/cli 7.0.0-next.202110071909 → 7.0.0-next.202111222227
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/Constants.d.ts +11 -0
- package/lib/Constants.js +27 -0
- package/lib/Constants.js.map +1 -1
- package/lib/config/auto-init/ApimlAutoInitHandler.d.ts +62 -1
- package/lib/config/auto-init/ApimlAutoInitHandler.js +338 -0
- package/lib/config/auto-init/ApimlAutoInitHandler.js.map +1 -1
- package/lib/imperative.js +29 -1
- package/lib/imperative.js.map +1 -1
- package/lib/main.js +3 -0
- package/lib/main.js.map +1 -1
- package/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js +1 -1
- package/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map +1 -1
- package/lib/zosconsole/issue/command/Command.definition.js +1 -1
- package/lib/zosconsole/issue/command/Command.definition.js.map +1 -1
- package/lib/zosfiles/-strings-/en.js +1 -1
- package/lib/zosfiles/-strings-/en.js.map +1 -1
- package/lib/zosjobs/-strings-/en.d.ts +55 -5
- package/lib/zosjobs/-strings-/en.js +65 -8
- package/lib/zosjobs/-strings-/en.js.map +1 -1
- package/lib/zosjobs/cancel/Cancel.definition.js +3 -3
- package/lib/zosjobs/cancel/Cancel.definition.js.map +1 -1
- package/lib/zosjobs/cancel/job/Job.definition.js +19 -7
- package/lib/zosjobs/cancel/job/Job.definition.js.map +1 -1
- package/lib/zosjobs/cancel/job/Job.handler.js +1 -1
- package/lib/zosjobs/cancel/job/Job.handler.js.map +1 -1
- package/lib/zosjobs/delete/Delete.definition.js +3 -3
- package/lib/zosjobs/delete/Delete.definition.js.map +1 -1
- package/lib/zosjobs/delete/job/Job.definition.js +19 -7
- package/lib/zosjobs/delete/job/Job.definition.js.map +1 -1
- package/lib/zosjobs/delete/job/Job.handler.js +1 -1
- package/lib/zosjobs/delete/job/Job.handler.js.map +1 -1
- package/lib/zosmf/list/systems/Systems.definition.js +1 -1
- package/lib/zosmf/list/systems/Systems.definition.js.map +1 -1
- package/lib/zostso/issue/command/Command.definition.js +1 -1
- package/lib/zostso/issue/command/Command.definition.js.map +1 -1
- package/package.json +15 -12
- package/prebuilds/Cargo.lock +229 -0
- package/prebuilds/Cargo.toml +12 -0
- package/prebuilds/zowe-linux.tgz +0 -0
- package/prebuilds/zowe-macos.tgz +0 -0
- package/prebuilds/zowe-windows.tgz +0 -0
package/lib/Constants.d.ts
CHANGED
|
@@ -119,6 +119,17 @@ export declare class Constants {
|
|
|
119
119
|
* Option used in profile creation and commands for tokenValue to be used to interact with APIs
|
|
120
120
|
*/
|
|
121
121
|
static AUTO_INIT_OPTION_TOKEN_VALUE: ICommandOptionDefinition;
|
|
122
|
+
/**
|
|
123
|
+
* Option used to specify the path to the certificate file for authentication
|
|
124
|
+
*/
|
|
125
|
+
static BASE_OPTION_CERT_FILE: ICommandOptionDefinition;
|
|
126
|
+
/**
|
|
127
|
+
* Option used to specify the path to the certificate file for authentication
|
|
128
|
+
*/
|
|
129
|
+
static BASE_OPTION_CERT_KEY_FILE: ICommandOptionDefinition;
|
|
130
|
+
/**
|
|
131
|
+
* Option used to specify the path to the certificate file for authentication
|
|
132
|
+
*/
|
|
122
133
|
/**
|
|
123
134
|
* Summary of auth command group
|
|
124
135
|
* @static
|
package/lib/Constants.js
CHANGED
|
@@ -186,6 +186,33 @@ Constants.AUTO_INIT_OPTION_TOKEN_TYPE = Object.assign(Object.assign({}, Constant
|
|
|
186
186
|
* Option used in profile creation and commands for tokenValue to be used to interact with APIs
|
|
187
187
|
*/
|
|
188
188
|
Constants.AUTO_INIT_OPTION_TOKEN_VALUE = Object.assign(Object.assign({}, Constants.BASE_OPTION_TOKEN_VALUE), { description: "The value of the token to pass to the API Mediation Layer.", group: Constants.AUTO_INIT_OPTION_GROUP });
|
|
189
|
+
/**
|
|
190
|
+
* Option used to specify the path to the certificate file for authentication
|
|
191
|
+
*/
|
|
192
|
+
Constants.BASE_OPTION_CERT_FILE = {
|
|
193
|
+
name: "cert-file",
|
|
194
|
+
description: "The file path to a certificate file to use for authentication",
|
|
195
|
+
type: "existingLocalFile",
|
|
196
|
+
group: Constants.BASE_CONNECTION_OPTION_GROUP
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Option used to specify the path to the certificate file for authentication
|
|
200
|
+
*/
|
|
201
|
+
Constants.BASE_OPTION_CERT_KEY_FILE = {
|
|
202
|
+
name: "cert-key-file",
|
|
203
|
+
description: "The file path to a certificate key file to use for authentication",
|
|
204
|
+
type: "existingLocalFile",
|
|
205
|
+
group: Constants.BASE_CONNECTION_OPTION_GROUP
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Option used to specify the path to the certificate file for authentication
|
|
209
|
+
*/
|
|
210
|
+
// public static BASE_OPTION_CERT_FILE_PASSPHRASE: ICommandOptionDefinition = {
|
|
211
|
+
// name: "cert-file-passphrase",
|
|
212
|
+
// description: "The passphrase to decrypt a certificate file to use for authentication",
|
|
213
|
+
// type: "string",
|
|
214
|
+
// group: Constants.BASE_CONNECTION_OPTION_GROUP
|
|
215
|
+
// };
|
|
189
216
|
/**
|
|
190
217
|
* Summary of auth command group
|
|
191
218
|
* @static
|
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;AAEtG;;;;GAIG;AACH,MAAa,SAAS;;AAAtB,
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAAsG;AAEtG;;;;GAIG;AACH,MAAa,SAAS;;AAAtB,8BAmWC;AAjWG;;;;GAIG;AACoB,sBAAY,GAAG,oBAAoB,CAAC;AAE3D;;;;GAIG;AACoB,sBAAY,GAAG,UAAU,CAAC;A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ACrE,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAutoInitHandler, AbstractSession, ICommandArguments, ISession,
|
|
1
|
+
import { BaseAutoInitHandler, AbstractSession, ICommandArguments, IConfig, ISession, IHandlerResponseApi, IHandlerParameters } from "@zowe/imperative";
|
|
2
2
|
/**
|
|
3
3
|
* This class is used by the auth command handlers as the base class for their implementation.
|
|
4
4
|
*/
|
|
@@ -11,6 +11,18 @@ export default class ApimlAutoInitHandler extends BaseAutoInitHandler {
|
|
|
11
11
|
* The description of your service to be used in CLI prompt messages
|
|
12
12
|
*/
|
|
13
13
|
protected mServiceDescription: string;
|
|
14
|
+
private readonly NO_CHANGES_MSG;
|
|
15
|
+
private readonly CREATED_MSG;
|
|
16
|
+
private readonly MODIFIED_MSG;
|
|
17
|
+
private readonly REMOVED_MSG;
|
|
18
|
+
private readonly WARNING_MSG;
|
|
19
|
+
/**
|
|
20
|
+
* This structure is populated during convertApimlProfileInfoToProfileConfig
|
|
21
|
+
* and retrieved by the auto-init command handler to provide the data for the
|
|
22
|
+
* output of the auto-init command.
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
private mAutoInitReport;
|
|
14
26
|
/**
|
|
15
27
|
* This is called by the {@link BaseAuthHandler#process} when it needs a
|
|
16
28
|
* session. Should be used to create a session to connect to the auto-init
|
|
@@ -26,4 +38,53 @@ export default class ApimlAutoInitHandler extends BaseAutoInitHandler {
|
|
|
26
38
|
* @throws {ImperativeError}
|
|
27
39
|
*/
|
|
28
40
|
protected doAutoInit(session: AbstractSession, params: IHandlerParameters): Promise<IConfig>;
|
|
41
|
+
/**
|
|
42
|
+
* This is called by our processAutoInit() base class function to display the set of actions
|
|
43
|
+
* taken by the auto-init command.
|
|
44
|
+
*/
|
|
45
|
+
protected displayAutoInitChanges(response: IHandlerResponseApi): void;
|
|
46
|
+
/**
|
|
47
|
+
* Colorize a change keyword for a message to be displayed.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} changeKeyWd
|
|
50
|
+
* The keyword that we want to colorize.
|
|
51
|
+
*
|
|
52
|
+
* @returns {string} A string with the keyword in the appropriate color.
|
|
53
|
+
*/
|
|
54
|
+
private colorizeKeyword;
|
|
55
|
+
/**
|
|
56
|
+
* Record the set of profiles found by our interrogation of plugins and APIML.
|
|
57
|
+
* The information is re-arranged to enable easy reporting of the desired information.
|
|
58
|
+
* This function assumes that the 'services' module continues to use its algorithm
|
|
59
|
+
* in which the first profile of a given type is the profile that we select..
|
|
60
|
+
* If that changes, this function must also change.
|
|
61
|
+
*
|
|
62
|
+
* @param {IApimlProfileInfo} apimlProfInfos
|
|
63
|
+
* The profileInfo array returned by services.getServicesByConfig().
|
|
64
|
+
*/
|
|
65
|
+
private recordProfilesFound;
|
|
66
|
+
/**
|
|
67
|
+
* Record how the profiles have been updated by auto-init.
|
|
68
|
+
*/
|
|
69
|
+
private recordProfileUpdates;
|
|
70
|
+
/**
|
|
71
|
+
* Record the change message for one profile with the
|
|
72
|
+
* this.mAutoInitReport.profileRpts array.
|
|
73
|
+
*
|
|
74
|
+
* @param {string} profNmToRecord
|
|
75
|
+
* The name of the profile for which we want to record a change.
|
|
76
|
+
*
|
|
77
|
+
* @param {IConfigProfile} profObj
|
|
78
|
+
* An IConfigProfile object which is used when a new entry must be
|
|
79
|
+
* created in the profileRpts array.
|
|
80
|
+
*
|
|
81
|
+
* @param {string} msgToRecord
|
|
82
|
+
* The message to record for the type of change to this profile.
|
|
83
|
+
*/
|
|
84
|
+
private recordOneProfChange;
|
|
85
|
+
/**
|
|
86
|
+
* Record info about profile properties that override properties defined in
|
|
87
|
+
* the base profile. These properties may prevent connecting to the APIML.
|
|
88
|
+
*/
|
|
89
|
+
private recordProfileConflictsWithBase;
|
|
29
90
|
}
|
|
@@ -19,6 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const path = require("path");
|
|
23
|
+
const lodash = require("lodash");
|
|
22
24
|
const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk");
|
|
23
25
|
const imperative_1 = require("@zowe/imperative");
|
|
24
26
|
const core_for_zowe_sdk_1 = require("@zowe/core-for-zowe-sdk");
|
|
@@ -36,6 +38,24 @@ class ApimlAutoInitHandler extends imperative_1.BaseAutoInitHandler {
|
|
|
36
38
|
* The description of your service to be used in CLI prompt messages
|
|
37
39
|
*/
|
|
38
40
|
this.mServiceDescription = "your API Mediation Layer";
|
|
41
|
+
this.NO_CHANGES_MSG = "No changes to";
|
|
42
|
+
this.CREATED_MSG = "Created";
|
|
43
|
+
this.MODIFIED_MSG = "Modified";
|
|
44
|
+
this.REMOVED_MSG = "Removed";
|
|
45
|
+
this.WARNING_MSG = "Warning:";
|
|
46
|
+
/**
|
|
47
|
+
* This structure is populated during convertApimlProfileInfoToProfileConfig
|
|
48
|
+
* and retrieved by the auto-init command handler to provide the data for the
|
|
49
|
+
* output of the auto-init command.
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
this.mAutoInitReport = {
|
|
53
|
+
configFileNm: "",
|
|
54
|
+
changeForConfig: this.NO_CHANGES_MSG,
|
|
55
|
+
startingConfig: null,
|
|
56
|
+
endingConfig: null,
|
|
57
|
+
profileRpts: []
|
|
58
|
+
};
|
|
39
59
|
/**
|
|
40
60
|
* This is called by the {@link BaseAuthHandler#process} when it needs a
|
|
41
61
|
* session. Should be used to create a session to connect to the auto-init
|
|
@@ -98,9 +118,327 @@ class ApimlAutoInitHandler extends imperative_1.BaseAutoInitHandler {
|
|
|
98
118
|
profileConfig.profiles.base.secure.push("tokenValue");
|
|
99
119
|
}
|
|
100
120
|
}
|
|
121
|
+
this.recordProfilesFound(profileInfos);
|
|
101
122
|
return profileConfig;
|
|
102
123
|
});
|
|
103
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* This is called by our processAutoInit() base class function to display the set of actions
|
|
127
|
+
* taken by the auto-init command.
|
|
128
|
+
*/
|
|
129
|
+
displayAutoInitChanges(response) {
|
|
130
|
+
// all profile updates have been made. Now we can record those updates.
|
|
131
|
+
this.recordProfileUpdates();
|
|
132
|
+
if (this.mAutoInitReport.changeForConfig === this.NO_CHANGES_MSG) {
|
|
133
|
+
response.console.log("No changes were needed in the existing Zowe configuration file '" +
|
|
134
|
+
path.basename(this.mAutoInitReport.configFileNm) + "'.");
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
// Report the type of config file changes
|
|
138
|
+
response.console.log(this.colorizeKeyword(this.mAutoInitReport.changeForConfig) +
|
|
139
|
+
" the Zowe configuration file '" +
|
|
140
|
+
path.basename(this.mAutoInitReport.configFileNm) + "'.");
|
|
141
|
+
// display information about each profile
|
|
142
|
+
for (const nextProfRpt of this.mAutoInitReport.profileRpts) {
|
|
143
|
+
let defOrAlt;
|
|
144
|
+
const isDefaultProf = this.mAutoInitReport.endingConfig.properties.defaults[nextProfRpt.profType] ===
|
|
145
|
+
nextProfRpt.profName;
|
|
146
|
+
if (isDefaultProf) {
|
|
147
|
+
defOrAlt = "default";
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
defOrAlt = "alternate";
|
|
151
|
+
}
|
|
152
|
+
let msg;
|
|
153
|
+
msg = "\n" + this.colorizeKeyword(nextProfRpt.changeForProf) + " " + defOrAlt +
|
|
154
|
+
" profile '" + nextProfRpt.profName + "' of type '" + nextProfRpt.profType + "'";
|
|
155
|
+
if (nextProfRpt.profType !== "base") {
|
|
156
|
+
msg += " with basePath '" + nextProfRpt.basePath + "'";
|
|
157
|
+
}
|
|
158
|
+
response.console.log(msg);
|
|
159
|
+
// only report plugins and alternates for the default profile of each type
|
|
160
|
+
if (!isDefaultProf) {
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
// report plugins using this profile (except for base profiles)
|
|
164
|
+
let loopCount;
|
|
165
|
+
if (nextProfRpt.pluginNms.length > 0) {
|
|
166
|
+
if (nextProfRpt.profType !== "base") {
|
|
167
|
+
loopCount = 1;
|
|
168
|
+
for (const pluginNm of nextProfRpt.pluginNms) {
|
|
169
|
+
if (loopCount == 1) {
|
|
170
|
+
msg = " Packages that use profile type '" + nextProfRpt.profType + "': ";
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
msg += ", ";
|
|
174
|
+
}
|
|
175
|
+
msg += pluginNm;
|
|
176
|
+
loopCount++;
|
|
177
|
+
}
|
|
178
|
+
response.console.log(msg);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
// display the alternate profiles
|
|
182
|
+
if (nextProfRpt.altProfiles.length > 0) {
|
|
183
|
+
loopCount = 1;
|
|
184
|
+
for (const altProf of nextProfRpt.altProfiles) {
|
|
185
|
+
if (loopCount == 1) {
|
|
186
|
+
msg = " Alternate profiles of type '" + nextProfRpt.profType + "': ";
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
msg += ", ";
|
|
190
|
+
}
|
|
191
|
+
msg += altProf.altProfName;
|
|
192
|
+
loopCount++;
|
|
193
|
+
}
|
|
194
|
+
response.console.log(msg);
|
|
195
|
+
}
|
|
196
|
+
if (nextProfRpt.baseOverrides.length > 0) {
|
|
197
|
+
const baseProfileName = this.mAutoInitReport.endingConfig.properties.defaults.base;
|
|
198
|
+
msg = ` ${this.colorizeKeyword(this.WARNING_MSG)} This profile may require manual edits to work with APIML:`;
|
|
199
|
+
for (const baseOverride of nextProfRpt.baseOverrides) {
|
|
200
|
+
msg += `\n ${baseOverride.propName}: `;
|
|
201
|
+
if (!baseOverride.secure) {
|
|
202
|
+
msg += `'${baseOverride.priorityValue}' overrides '${baseOverride.baseValue}' in`;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
msg += "secure value " + ((baseOverride.priorityValue != null) ? "overrides" : "may override");
|
|
206
|
+
}
|
|
207
|
+
msg += ` profile '${baseProfileName}'`;
|
|
208
|
+
}
|
|
209
|
+
response.console.log(msg);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
response.console.log("\nYou can edit this configuration file to change your Zowe configuration:\n " +
|
|
213
|
+
this.mAutoInitReport.configFileNm);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Colorize a change keyword for a message to be displayed.
|
|
217
|
+
*
|
|
218
|
+
* @param {string} changeKeyWd
|
|
219
|
+
* The keyword that we want to colorize.
|
|
220
|
+
*
|
|
221
|
+
* @returns {string} A string with the keyword in the appropriate color.
|
|
222
|
+
*/
|
|
223
|
+
colorizeKeyword(changeKeyword) {
|
|
224
|
+
let keywordInColor;
|
|
225
|
+
switch (changeKeyword) {
|
|
226
|
+
case this.CREATED_MSG:
|
|
227
|
+
case this.MODIFIED_MSG:
|
|
228
|
+
keywordInColor = imperative_1.TextUtils.chalk.greenBright(changeKeyword);
|
|
229
|
+
break;
|
|
230
|
+
case this.REMOVED_MSG:
|
|
231
|
+
keywordInColor = imperative_1.TextUtils.chalk.redBright(changeKeyword);
|
|
232
|
+
break;
|
|
233
|
+
case this.WARNING_MSG:
|
|
234
|
+
keywordInColor = imperative_1.TextUtils.chalk.yellowBright(changeKeyword);
|
|
235
|
+
break;
|
|
236
|
+
default:
|
|
237
|
+
keywordInColor = changeKeyword;
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
return keywordInColor;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Record the set of profiles found by our interrogation of plugins and APIML.
|
|
244
|
+
* The information is re-arranged to enable easy reporting of the desired information.
|
|
245
|
+
* This function assumes that the 'services' module continues to use its algorithm
|
|
246
|
+
* in which the first profile of a given type is the profile that we select..
|
|
247
|
+
* If that changes, this function must also change.
|
|
248
|
+
*
|
|
249
|
+
* @param {IApimlProfileInfo} apimlProfInfos
|
|
250
|
+
* The profileInfo array returned by services.getServicesByConfig().
|
|
251
|
+
*/
|
|
252
|
+
recordProfilesFound(apimlProfInfos) {
|
|
253
|
+
// record our starting config
|
|
254
|
+
if (imperative_1.ImperativeConfig.instance.config.exists) {
|
|
255
|
+
this.mAutoInitReport.startingConfig = imperative_1.ImperativeConfig.instance.config.api.layers.get();
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
this.mAutoInitReport.startingConfig = null;
|
|
259
|
+
}
|
|
260
|
+
// Record the profiles found by APIML for each profile type
|
|
261
|
+
for (const currProfInfo of apimlProfInfos) {
|
|
262
|
+
const newProfRpt = {
|
|
263
|
+
changeForProf: this.NO_CHANGES_MSG,
|
|
264
|
+
profName: currProfInfo.profName,
|
|
265
|
+
profType: currProfInfo.profType,
|
|
266
|
+
basePath: currProfInfo.basePaths[0],
|
|
267
|
+
pluginNms: [],
|
|
268
|
+
altProfiles: [],
|
|
269
|
+
baseOverrides: []
|
|
270
|
+
};
|
|
271
|
+
// add all of the plugins using this profile
|
|
272
|
+
for (const nextPlugin of currProfInfo.pluginConfigs) {
|
|
273
|
+
newProfRpt.pluginNms.push(nextPlugin.pluginName);
|
|
274
|
+
}
|
|
275
|
+
// each additional basePath for the current plugin is an alternate
|
|
276
|
+
for (let basePathInx = 1; basePathInx < currProfInfo.basePaths.length; basePathInx++) {
|
|
277
|
+
newProfRpt.altProfiles.push({
|
|
278
|
+
altProfName: currProfInfo.profName,
|
|
279
|
+
altProfType: currProfInfo.profType,
|
|
280
|
+
altBasePath: currProfInfo.basePaths[basePathInx]
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
// each of the other profiles of the same profile type is an alternate
|
|
284
|
+
for (const nextProfInfoOfType of apimlProfInfos) {
|
|
285
|
+
if (nextProfInfoOfType.profName !== currProfInfo.profName &&
|
|
286
|
+
nextProfInfoOfType.profType === currProfInfo.profType) {
|
|
287
|
+
// each basePath constitutes another alternate
|
|
288
|
+
for (const nextBasePath of nextProfInfoOfType.basePaths) {
|
|
289
|
+
newProfRpt.altProfiles.push({
|
|
290
|
+
altProfName: nextProfInfoOfType.profName,
|
|
291
|
+
altProfType: nextProfInfoOfType.profType,
|
|
292
|
+
altBasePath: nextBasePath
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
this.mAutoInitReport.profileRpts.push(newProfRpt);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Record how the profiles have been updated by auto-init.
|
|
302
|
+
*/
|
|
303
|
+
recordProfileUpdates() {
|
|
304
|
+
// get our current (ending) config
|
|
305
|
+
this.mAutoInitReport.endingConfig = imperative_1.ImperativeConfig.instance.config.api.layers.get();
|
|
306
|
+
// record the config file name path
|
|
307
|
+
this.mAutoInitReport.configFileNm = this.mAutoInitReport.endingConfig.path;
|
|
308
|
+
this.mAutoInitReport.changeForConfig = this.NO_CHANGES_MSG;
|
|
309
|
+
if (this.mAutoInitReport.startingConfig === null) {
|
|
310
|
+
// We started with no config file, so everything was created.
|
|
311
|
+
this.mAutoInitReport.changeForConfig = this.CREATED_MSG;
|
|
312
|
+
for (const nextProfRpt of this.mAutoInitReport.profileRpts) {
|
|
313
|
+
nextProfRpt.changeForProf = this.CREATED_MSG;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
/* We must compare starting config to ending config to determine
|
|
318
|
+
* if we created or updated individual profiles.
|
|
319
|
+
*/
|
|
320
|
+
const startCfgLayer = this.mAutoInitReport.startingConfig;
|
|
321
|
+
const endCfgLayer = this.mAutoInitReport.endingConfig;
|
|
322
|
+
if (!startCfgLayer.exists && endCfgLayer.exists) {
|
|
323
|
+
// the starting config file existed, but its layer did not
|
|
324
|
+
if (this.mAutoInitReport.changeForConfig === this.NO_CHANGES_MSG) {
|
|
325
|
+
this.mAutoInitReport.changeForConfig = this.MODIFIED_MSG;
|
|
326
|
+
// each profile in this previously non-existent layer has been created
|
|
327
|
+
for (const nextProfRpt of this.mAutoInitReport.profileRpts) {
|
|
328
|
+
nextProfRpt.changeForProf = this.CREATED_MSG;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
/* We must compare profile-by-profile.
|
|
334
|
+
* Look for each profile from the ending config within the staring config
|
|
335
|
+
*/
|
|
336
|
+
for (const endProfNm of lodash.keys(endCfgLayer.properties.profiles)) {
|
|
337
|
+
if (lodash.has(startCfgLayer.properties.profiles, endProfNm)) {
|
|
338
|
+
if (lodash.isEqual(startCfgLayer.properties.profiles[endProfNm], endCfgLayer.properties.profiles[endProfNm])) {
|
|
339
|
+
// both starting profile and ending profile are the same
|
|
340
|
+
this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.NO_CHANGES_MSG);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.MODIFIED_MSG);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
/* Each profile in the ending config that is not
|
|
348
|
+
* in the starting config has been created.
|
|
349
|
+
*/
|
|
350
|
+
this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.CREATED_MSG);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
// Look for each profile from the staring config within the ending config
|
|
354
|
+
for (const startProfNm of lodash.keys(startCfgLayer.properties.profiles)) {
|
|
355
|
+
/* We already recorded a message for profiles that exist in both
|
|
356
|
+
* the starting and ending configs in the loop above,
|
|
357
|
+
* so just record when the starting profile has been removed.
|
|
358
|
+
*/
|
|
359
|
+
if (!lodash.has(endCfgLayer.properties.profiles, startProfNm)) {
|
|
360
|
+
this.recordOneProfChange(startProfNm, endCfgLayer.properties.profiles[startProfNm], this.REMOVED_MSG);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
this.recordProfileConflictsWithBase();
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Record the change message for one profile with the
|
|
369
|
+
* this.mAutoInitReport.profileRpts array.
|
|
370
|
+
*
|
|
371
|
+
* @param {string} profNmToRecord
|
|
372
|
+
* The name of the profile for which we want to record a change.
|
|
373
|
+
*
|
|
374
|
+
* @param {IConfigProfile} profObj
|
|
375
|
+
* An IConfigProfile object which is used when a new entry must be
|
|
376
|
+
* created in the profileRpts array.
|
|
377
|
+
*
|
|
378
|
+
* @param {string} msgToRecord
|
|
379
|
+
* The message to record for the type of change to this profile.
|
|
380
|
+
*/
|
|
381
|
+
recordOneProfChange(profNmToRecord, profObj, msgToRecord) {
|
|
382
|
+
// when any profile has been modified, we know the config was modified
|
|
383
|
+
if (msgToRecord !== this.NO_CHANGES_MSG) {
|
|
384
|
+
this.mAutoInitReport.changeForConfig = this.MODIFIED_MSG;
|
|
385
|
+
}
|
|
386
|
+
const profRptInx = lodash.findIndex(this.mAutoInitReport.profileRpts, { profName: profNmToRecord });
|
|
387
|
+
if (profRptInx >= 0) {
|
|
388
|
+
// an entry for this profile already exists
|
|
389
|
+
this.mAutoInitReport.profileRpts[profRptInx].changeForProf = msgToRecord;
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
// we must create a new IProfileRpt entry
|
|
393
|
+
const newProfRpt = {
|
|
394
|
+
changeForProf: msgToRecord,
|
|
395
|
+
profName: profNmToRecord,
|
|
396
|
+
profType: profObj.type,
|
|
397
|
+
basePath: lodash.get(profObj, "properties.basePath", "Not supplied"),
|
|
398
|
+
pluginNms: [],
|
|
399
|
+
altProfiles: [],
|
|
400
|
+
baseOverrides: []
|
|
401
|
+
};
|
|
402
|
+
this.mAutoInitReport.profileRpts.push(newProfRpt);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Record info about profile properties that override properties defined in
|
|
407
|
+
* the base profile. These properties may prevent connecting to the APIML.
|
|
408
|
+
*/
|
|
409
|
+
recordProfileConflictsWithBase() {
|
|
410
|
+
var _a, _b;
|
|
411
|
+
const configApi = imperative_1.ImperativeConfig.instance.config.api;
|
|
412
|
+
const configJson = this.mAutoInitReport.endingConfig.properties;
|
|
413
|
+
const baseProfileName = (_a = configJson.defaults) === null || _a === void 0 ? void 0 : _a.base;
|
|
414
|
+
if (baseProfileName == null) {
|
|
415
|
+
return; // default base profile is undefined
|
|
416
|
+
}
|
|
417
|
+
const baseProfile = lodash.get(configJson, configApi.profiles.expandPath(baseProfileName));
|
|
418
|
+
if (baseProfile == null) {
|
|
419
|
+
return; // default base profile is invalid
|
|
420
|
+
}
|
|
421
|
+
for (const profileRpt of this.mAutoInitReport.profileRpts) {
|
|
422
|
+
if (profileRpt.changeForProf === this.MODIFIED_MSG && profileRpt.profType !== "base") {
|
|
423
|
+
const serviceProfile = lodash.get(configJson, configApi.profiles.expandPath(profileRpt.profName));
|
|
424
|
+
for (const [name, value] of Object.entries(baseProfile.properties)) {
|
|
425
|
+
if (serviceProfile.properties[name] != null && serviceProfile.properties[name] !== baseProfile.properties[name]) {
|
|
426
|
+
profileRpt.baseOverrides.push({
|
|
427
|
+
propName: name,
|
|
428
|
+
secure: (baseProfile.secure || []).includes(name) || (serviceProfile.secure || []).includes(name),
|
|
429
|
+
priorityValue: serviceProfile.properties[name],
|
|
430
|
+
baseValue: value
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
for (const name of (baseProfile.secure || [])) {
|
|
435
|
+
if ((_b = serviceProfile.secure) === null || _b === void 0 ? void 0 : _b.includes(name)) {
|
|
436
|
+
profileRpt.baseOverrides.push({ propName: name, secure: true });
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
104
442
|
}
|
|
105
443
|
exports.default = ApimlAutoInitHandler;
|
|
106
444
|
//# sourceMappingURL=ApimlAutoInitHandler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApimlAutoInitHandler.js","sourceRoot":"","sources":["../../../src/config/auto-init/ApimlAutoInitHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iEAAwD;AACxD,iDAC2G;AAC3G,+DAA0D;AAE1D;;GAEG;AACH,MAAqB,oBAAqB,SAAQ,gCAAmB;IAArE;;QACI;;WAEG;QACO,iBAAY,GAAW,MAAM,CAAC;QAExC;;WAEG;QACO,wBAAmB,GAAW,0BAA0B,CAAC;QAEnE;;;;;;WAMG;QACO,0BAAqB,GAA0C,iCAAY,CAAC,qBAAqB,CAAC;IAwDhH,CAAC;IAtDG;;;;;OAKG;IACa,UAAU,CAAC,OAAwB,EAAE,MAA0B;;YAC3E,MAAM,mBAAmB,GAAG,GAAG,CAAC;YAChC,MAAM,OAAO,GAAG,4BAAQ,CAAC,qBAAqB,EAAE,CAAC;YACjD,IAAI,YAAY,CAAC;YACjB,IAAI;gBACA,YAAY,GAAG,MAAM,4BAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;aACvE;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,4BAAe,IAAI,GAAG,C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C,UAAU,CAAC,IAAI,CAAC,EAAE;wBAC7G,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC;4BAC1B,QAAQ,EAAE,IAAI;4BACd,MAAM,EAAE,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;4BACjG,aAAa,EAAE,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC;4BAC9C,SAAS,EAAE,KAAK;yBACnB,CAAC,CAAC;qBACN;iBACJ;gBACD,KAAK,MAAM,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE;oBAC3C,UAAI,cAAc,CAAC,MAAM,0CAAE,QAAQ,CAAC,IAAI,GAAG;wBACvC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;qBACnE;iBACJ;aACJ;SACJ;IACL,CAAC;CACJ;AAvcD,uCAucC"}
|
package/lib/imperative.js
CHANGED
|
@@ -84,6 +84,19 @@ const config = {
|
|
|
84
84
|
type: "string",
|
|
85
85
|
secure: true,
|
|
86
86
|
optionDefinition: Constants_1.Constants.BASE_OPTION_TOKEN_VALUE
|
|
87
|
+
},
|
|
88
|
+
certFile: {
|
|
89
|
+
type: "string",
|
|
90
|
+
optionDefinition: Constants_1.Constants.BASE_OPTION_CERT_FILE
|
|
91
|
+
},
|
|
92
|
+
certKeyFile: {
|
|
93
|
+
type: "string",
|
|
94
|
+
optionDefinition: Constants_1.Constants.BASE_OPTION_CERT_KEY_FILE
|
|
95
|
+
// },
|
|
96
|
+
// certFilePassphrase: {
|
|
97
|
+
// type: "string",
|
|
98
|
+
// secure: true,
|
|
99
|
+
// optionDefinition: Constants.BASE_OPTION_CERT_FILE_PASSPHRASE
|
|
87
100
|
}
|
|
88
101
|
},
|
|
89
102
|
required: []
|
|
@@ -131,7 +144,9 @@ const config = {
|
|
|
131
144
|
Constants_1.Constants.BASE_OPTION_PORT,
|
|
132
145
|
Constants_1.Constants.BASE_OPTION_USER,
|
|
133
146
|
Constants_1.Constants.BASE_OPTION_PASSWORD,
|
|
134
|
-
Constants_1.Constants.BASE_OPTION_REJECT_UNAUTHORIZED
|
|
147
|
+
Constants_1.Constants.BASE_OPTION_REJECT_UNAUTHORIZED,
|
|
148
|
+
Constants_1.Constants.BASE_OPTION_CERT_FILE,
|
|
149
|
+
Constants_1.Constants.BASE_OPTION_CERT_KEY_FILE
|
|
135
150
|
]
|
|
136
151
|
},
|
|
137
152
|
logout: {
|
|
@@ -206,6 +221,19 @@ const config = {
|
|
|
206
221
|
type: "boolean",
|
|
207
222
|
optionDefinition: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_OPTION_REJECT_UNAUTHORIZED
|
|
208
223
|
},
|
|
224
|
+
certFile: {
|
|
225
|
+
type: "string",
|
|
226
|
+
optionDefinition: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_OPTION_CERT_FILE
|
|
227
|
+
},
|
|
228
|
+
certKeyFile: {
|
|
229
|
+
type: "string",
|
|
230
|
+
optionDefinition: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_OPTION_CERT_KEY_FILE
|
|
231
|
+
},
|
|
232
|
+
// certFilePassphrase: {
|
|
233
|
+
// type: "string",
|
|
234
|
+
// secure: true,
|
|
235
|
+
// optionDefinition: ZosmfSession.ZOSMF_OPTION_CERT_FILE_PASSPHRASE
|
|
236
|
+
// },
|
|
209
237
|
basePath: {
|
|
210
238
|
type: "string",
|
|
211
239
|
optionDefinition: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_OPTION_BASE_PATH
|
package/lib/imperative.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";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,MAAM,CAAC"}
|
package/lib/main.js
CHANGED
|
@@ -36,6 +36,9 @@ const config = {
|
|
|
36
36
|
timingApi.measure("time to get into main function", "PRE_IMPORT_IMPERATIVE", "POST_IMPORT_IMPERATIVE");
|
|
37
37
|
try {
|
|
38
38
|
timingApi.mark("BEFORE_INIT");
|
|
39
|
+
if (process.argv.includes("--daemon")) {
|
|
40
|
+
config.daemonMode = true;
|
|
41
|
+
}
|
|
39
42
|
yield imperative_1.Imperative.init(config);
|
|
40
43
|
const processor = new Processor_1.Processor(process.argv);
|
|
41
44
|
processor.init();
|
package/lib/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AACA;;;;;;;;;EASE;;;;;;;;;;;AAEF,mDAA+C;AAC/C,MAAM,SAAS,GAAG,wBAAU,CAAC,GAAG,CAAC;AAEjC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AAExC,iDAAiE;AACjE,2CAAwC;AACxC,+BAA+B;AAC/B,2CAAwC;AAExC,0GAA0G;AAC1G,MAAM,MAAM,GAAsB;IAC9B,mBAAmB,EAAE,SAAS,GAAG,aAAa;CACjD,CAAC;AAEF,CAAC,GAAS,EAAE;IACR,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACzC,SAAS,CAAC,OAAO,CAAC,gCAAgC,EAAE,uBAAuB,EAAE,wBAAwB,CAAC,CAAC;IAEvG,IAAI;QACA,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AACA;;;;;;;;;EASE;;;;;;;;;;;AAEF,mDAA+C;AAC/C,MAAM,SAAS,GAAG,wBAAU,CAAC,GAAG,CAAC;AAEjC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AAExC,iDAAiE;AACjE,2CAAwC;A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