@broadcom/mat-analyze-for-zowe-cli 1.0.6 → 2.0.0
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 +3 -27
- package/README.md +45 -41
- package/lib/api/MATRest.d.ts +1 -1
- package/lib/api/MATRest.js +3 -5
- package/lib/api/MATRest.js.map +1 -1
- package/lib/cli/monitor/Monitor.definition.js +13 -2
- package/lib/cli/monitor/Monitor.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js +6 -6
- package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js +46 -24
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/callerid/Callerid.definition.js +1 -1
- package/lib/cli/monitor/codeview/csect/Csect.definition.js +1 -1
- package/lib/cli/monitor/codeview/module/Module.definition.js +1 -1
- package/lib/cli/monitor/db2/db2view/DB2View.definition.js +2 -2
- package/lib/cli/monitor/db2/db2view/DB2View.definition.js.map +1 -1
- package/lib/cli/monitor/db2/sqlview/SQLView.definition.js +1 -1
- package/lib/cli/monitor/delayview/address/Address.definition.js +1 -1
- package/lib/cli/monitor/delayview/delay/Delay.definition.js +1 -1
- package/lib/cli/monitor/history/History.definition.js +1 -1
- package/lib/cli/monitor/overview/Overview.definition.js +1 -1
- package/lib/cli/profile/Profile.definition.js +13 -2
- package/lib/cli/profile/Profile.definition.js.map +1 -1
- package/lib/cli/profile/create/CreateProfile.definition.js +47 -46
- package/lib/cli/profile/create/CreateProfile.definition.js.map +1 -1
- package/lib/cli/profile/create/CreateProfile.handler.d.ts +2 -0
- package/lib/cli/profile/create/CreateProfile.handler.js +140 -96
- package/lib/cli/profile/create/CreateProfile.handler.js.map +1 -1
- package/lib/cli/profile/invoke/InvokeProfile.definition.js +13 -12
- package/lib/cli/profile/invoke/InvokeProfile.definition.js.map +1 -1
- package/lib/cli/profile/listprofile/ListProfile.definition.js +1 -1
- package/lib/cli/session/MATSession.d.ts +24 -5
- package/lib/cli/session/MATSession.js +97 -31
- package/lib/cli/session/MATSession.js.map +1 -1
- package/lib/handlers/AbstractGetHandler.js +20 -24
- package/lib/handlers/AbstractGetHandler.js.map +1 -1
- package/lib/handlers/AbstractRestHandler.js +12 -7
- package/lib/handlers/AbstractRestHandler.js.map +1 -1
- package/lib/imperative.js +17 -13
- package/lib/imperative.js.map +1 -1
- package/package.json +18 -18
|
@@ -29,108 +29,152 @@ class CreateProfileHandler extends AbstractProfileActionHandler_1.default {
|
|
|
29
29
|
jobname: this.arguments.jobname,
|
|
30
30
|
targsys: this.arguments.targsys.split(",")
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
if (this.arguments.succnt != null) {
|
|
66
|
-
createProfileRequest.succnt = this.arguments.succnt;
|
|
67
|
-
}
|
|
68
|
-
if (this.arguments.reccnt != null) {
|
|
69
|
-
createProfileRequest.reccnt = this.arguments.reccnt;
|
|
70
|
-
}
|
|
71
|
-
if (this.arguments.sampdelay != null) {
|
|
72
|
-
createProfileRequest.sampdelay = this.arguments.sampdelay;
|
|
73
|
-
}
|
|
74
|
-
if (this.arguments.userexit1 != null) {
|
|
75
|
-
createProfileRequest.userexit1 = this.arguments.userexit1;
|
|
76
|
-
}
|
|
77
|
-
if (this.arguments.userexit2 != null) {
|
|
78
|
-
createProfileRequest.userexit2 = this.arguments.userexit2;
|
|
79
|
-
}
|
|
80
|
-
if (this.arguments.userexit3 != null) {
|
|
81
|
-
createProfileRequest.userexit3 = this.arguments.userexit3;
|
|
82
|
-
}
|
|
83
|
-
if (this.arguments.inctask != null) {
|
|
84
|
-
createProfileRequest.inctask = this.arguments.inctask.split(",");
|
|
85
|
-
}
|
|
86
|
-
if (this.arguments.exctask != null) {
|
|
87
|
-
createProfileRequest.exctask = this.arguments.exctask.split(",");
|
|
88
|
-
}
|
|
89
|
-
if (this.arguments.tran != null) {
|
|
90
|
-
createProfileRequest.tran = this.arguments.tran.split(",");
|
|
91
|
-
}
|
|
92
|
-
if (this.arguments.term != null) {
|
|
93
|
-
createProfileRequest.term = this.arguments.term.split(",");
|
|
94
|
-
}
|
|
95
|
-
if (this.arguments.userid != null) {
|
|
96
|
-
createProfileRequest.userid = this.arguments.userid.split(",");
|
|
97
|
-
}
|
|
98
|
-
if (this.arguments.db2expl != null) {
|
|
99
|
-
createProfileRequest.db2expl = this.arguments.db2expl;
|
|
100
|
-
}
|
|
101
|
-
if (this.arguments.db2ctsql != null) {
|
|
102
|
-
createProfileRequest.db2ctsql = this.arguments.db2ctsql;
|
|
103
|
-
}
|
|
104
|
-
if (this.arguments.db2hvloc != null) {
|
|
105
|
-
createProfileRequest.db2hvloc = this.arguments.db2hvloc;
|
|
106
|
-
}
|
|
107
|
-
if (this.arguments.db2hvcor != null) {
|
|
108
|
-
createProfileRequest.db2hvcor = this.arguments.db2hvcor;
|
|
109
|
-
}
|
|
110
|
-
if (this.arguments.db2hviid != null) {
|
|
111
|
-
createProfileRequest.db2hviid = this.arguments.db2hviid;
|
|
112
|
-
}
|
|
113
|
-
if (this.arguments.db2hvthd != null) {
|
|
114
|
-
createProfileRequest.db2hvthd = this.arguments.db2hvthd;
|
|
115
|
-
}
|
|
116
|
-
if (this.arguments.wasexprt != null) {
|
|
117
|
-
createProfileRequest.wasexprt = this.arguments.wasexprt;
|
|
118
|
-
}
|
|
119
|
-
if (this.arguments.urlfilt != null) {
|
|
120
|
-
createProfileRequest.urlfilt = this.arguments.urlfilt.split(",");
|
|
121
|
-
}
|
|
122
|
-
if (this.arguments.sysfilt != null) {
|
|
123
|
-
createProfileRequest.sysfilt = this.arguments.sysfilt.split(",");
|
|
124
|
-
}
|
|
125
|
-
if (this.arguments.schedule != null) {
|
|
126
|
-
createProfileRequest.schedule = this.arguments.schedule;
|
|
127
|
-
}
|
|
32
|
+
this.setReqestParm(createProfileRequest, "batchreports", this.arguments.batchreports);
|
|
33
|
+
this.setReqestParm(createProfileRequest, "description", this.arguments.description);
|
|
34
|
+
this.setReqestParm(createProfileRequest, "mondsn", this.arguments.mondsn);
|
|
35
|
+
this.setReqestParm(createProfileRequest, "stepname", this.arguments.stepname);
|
|
36
|
+
this.setReqestParm(createProfileRequest, "mstep", this.arguments.mstep);
|
|
37
|
+
this.setReqestParm(createProfileRequest, "procstep", this.arguments.procstep);
|
|
38
|
+
this.setReqestParm(createProfileRequest, "program", this.arguments.program);
|
|
39
|
+
this.setReqestParm(createProfileRequest, "elapstime", this.arguments.elapstime);
|
|
40
|
+
this.setReqestParm(createProfileRequest, "smon", this.arguments.smon);
|
|
41
|
+
this.setReqestParm(createProfileRequest, "tasklib", this.arguments.tasklib);
|
|
42
|
+
this.setReqestParm(createProfileRequest, "samplecnt", this.arguments.samplecnt);
|
|
43
|
+
this.setReqestParm(createProfileRequest, "succnt", this.arguments.succnt);
|
|
44
|
+
this.setReqestParm(createProfileRequest, "reccnt", this.arguments.reccnt);
|
|
45
|
+
this.setReqestParm(createProfileRequest, "sampdelay", this.arguments.sampdelay);
|
|
46
|
+
this.setReqestParm(createProfileRequest, "userexit1", this.arguments.userexit1);
|
|
47
|
+
this.setReqestParm(createProfileRequest, "userexit2", this.arguments.userexit2);
|
|
48
|
+
this.setReqestParm(createProfileRequest, "userexit3", this.arguments.userexit3);
|
|
49
|
+
this.setReqestParm(createProfileRequest, "inctask", this.arguments.inctask);
|
|
50
|
+
this.setReqestParm(createProfileRequest, "exctask", this.arguments.exctask);
|
|
51
|
+
this.setReqestParm(createProfileRequest, "tran", this.arguments.tran);
|
|
52
|
+
this.setReqestParm(createProfileRequest, "term", this.arguments.term);
|
|
53
|
+
this.setReqestParm(createProfileRequest, "userid", this.arguments.userid);
|
|
54
|
+
this.setReqestParm(createProfileRequest, "db2expl", this.arguments.db2expl);
|
|
55
|
+
this.setReqestParm(createProfileRequest, "db2ctsql", this.arguments.db2ctsql);
|
|
56
|
+
this.setReqestParm(createProfileRequest, "db2hvloc", this.arguments.db2hvloc);
|
|
57
|
+
this.setReqestParm(createProfileRequest, "db2hvcor", this.arguments.db2hvcor);
|
|
58
|
+
this.setReqestParm(createProfileRequest, "db2hviid", this.arguments.db2hviid);
|
|
59
|
+
this.setReqestParm(createProfileRequest, "db2hvthd", this.arguments.db2hvthd);
|
|
60
|
+
this.setReqestParm(createProfileRequest, "wasexprt", this.arguments.wasexprt);
|
|
61
|
+
this.setReqestParm(createProfileRequest, "urlfilt", this.arguments.urlfilt);
|
|
62
|
+
this.setReqestParm(createProfileRequest, "sysfilt", this.arguments.sysfilt);
|
|
63
|
+
this.setReqestParm(createProfileRequest, "schedule", this.arguments.schedule);
|
|
128
64
|
const createRequest = {
|
|
129
65
|
action: "create",
|
|
130
66
|
request: createProfileRequest
|
|
131
67
|
};
|
|
132
68
|
return JSON.stringify(createRequest);
|
|
133
69
|
}
|
|
70
|
+
setReqestParm(createProfileRequest, requestParm, requestParmValue) {
|
|
71
|
+
if (requestParmValue == null) {
|
|
72
|
+
return createProfileRequest;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
switch (requestParm) {
|
|
76
|
+
case ("batchreports"):
|
|
77
|
+
createProfileRequest.batchreports = this.arguments.batchreports;
|
|
78
|
+
break;
|
|
79
|
+
case ("description"):
|
|
80
|
+
createProfileRequest.description = this.arguments.description;
|
|
81
|
+
break;
|
|
82
|
+
case ("mondsn"):
|
|
83
|
+
createProfileRequest.mondsn = this.arguments.mondsn;
|
|
84
|
+
break;
|
|
85
|
+
case ("stepname"):
|
|
86
|
+
createProfileRequest.stepname = this.arguments.stepname;
|
|
87
|
+
break;
|
|
88
|
+
case ("mstep"):
|
|
89
|
+
createProfileRequest.mstep = this.arguments.mstep;
|
|
90
|
+
break;
|
|
91
|
+
case ("procstep"):
|
|
92
|
+
createProfileRequest.procstep = this.arguments.procstep;
|
|
93
|
+
break;
|
|
94
|
+
case ("program"):
|
|
95
|
+
createProfileRequest.program = this.arguments.program;
|
|
96
|
+
break;
|
|
97
|
+
case ("elapstime"):
|
|
98
|
+
createProfileRequest.elapstime = this.arguments.elapstime;
|
|
99
|
+
break;
|
|
100
|
+
case ("smon"):
|
|
101
|
+
createProfileRequest.smon = this.arguments.smon;
|
|
102
|
+
break;
|
|
103
|
+
case ("tasklib"):
|
|
104
|
+
createProfileRequest.tasklib = this.arguments.tasklib;
|
|
105
|
+
break;
|
|
106
|
+
case ("samplecnt"):
|
|
107
|
+
createProfileRequest.samplecnt = this.arguments.samplecnt;
|
|
108
|
+
break;
|
|
109
|
+
case ("succnt"):
|
|
110
|
+
createProfileRequest.succnt = this.arguments.succnt;
|
|
111
|
+
break;
|
|
112
|
+
case ("reccnt"):
|
|
113
|
+
createProfileRequest.reccnt = this.arguments.reccnt;
|
|
114
|
+
break;
|
|
115
|
+
case ("sampdelay"):
|
|
116
|
+
createProfileRequest.sampdelay = this.arguments.sampdelay;
|
|
117
|
+
break;
|
|
118
|
+
case ("userexit1"):
|
|
119
|
+
createProfileRequest.userexit1 = this.arguments.userexit1;
|
|
120
|
+
break;
|
|
121
|
+
case ("userexit2"):
|
|
122
|
+
createProfileRequest.userexit2 = this.arguments.userexit2;
|
|
123
|
+
break;
|
|
124
|
+
case ("userexit3"):
|
|
125
|
+
createProfileRequest.userexit3 = this.arguments.userexit3;
|
|
126
|
+
break;
|
|
127
|
+
case ("inctask"):
|
|
128
|
+
createProfileRequest.inctask = this.arguments.inctask.split(",");
|
|
129
|
+
break;
|
|
130
|
+
case ("exctask"):
|
|
131
|
+
createProfileRequest.exctask = this.arguments.exctask.split(",");
|
|
132
|
+
break;
|
|
133
|
+
case ("tran"):
|
|
134
|
+
createProfileRequest.tran = this.arguments.tran.split(",");
|
|
135
|
+
break;
|
|
136
|
+
case ("term"):
|
|
137
|
+
createProfileRequest.term = this.arguments.term.split(",");
|
|
138
|
+
break;
|
|
139
|
+
case ("userid"):
|
|
140
|
+
createProfileRequest.userid = this.arguments.userid.split(",");
|
|
141
|
+
break;
|
|
142
|
+
case ("db2expl"):
|
|
143
|
+
createProfileRequest.db2expl = this.arguments.db2expl;
|
|
144
|
+
break;
|
|
145
|
+
case ("db2ctsql"):
|
|
146
|
+
createProfileRequest.db2ctsql = this.arguments.db2ctsql;
|
|
147
|
+
break;
|
|
148
|
+
case ("db2hvloc"):
|
|
149
|
+
createProfileRequest.db2hvloc = this.arguments.db2hvloc;
|
|
150
|
+
break;
|
|
151
|
+
case ("db2hvcor"):
|
|
152
|
+
createProfileRequest.db2hvcor = this.arguments.db2hvcor;
|
|
153
|
+
break;
|
|
154
|
+
case ("db2hviid"):
|
|
155
|
+
createProfileRequest.db2hviid = this.arguments.db2hviid;
|
|
156
|
+
break;
|
|
157
|
+
case ("db2hvthd"):
|
|
158
|
+
createProfileRequest.db2hvthd = this.arguments.db2hvthd;
|
|
159
|
+
break;
|
|
160
|
+
case ("wasexprt"):
|
|
161
|
+
createProfileRequest.wasexprt = this.arguments.wasexprt;
|
|
162
|
+
break;
|
|
163
|
+
case ("urlfilt"):
|
|
164
|
+
createProfileRequest.urlfilt = this.arguments.urlfilt.split(",");
|
|
165
|
+
break;
|
|
166
|
+
case ("sysfilt"):
|
|
167
|
+
createProfileRequest.sysfilt = this.arguments.sysfilt.split(",");
|
|
168
|
+
break;
|
|
169
|
+
case ("schedule"):
|
|
170
|
+
createProfileRequest.schedule = this.arguments.schedule;
|
|
171
|
+
break;
|
|
172
|
+
default:
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
return createProfileRequest;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
134
178
|
}
|
|
135
179
|
exports.default = CreateProfileHandler;
|
|
136
180
|
//# sourceMappingURL=CreateProfile.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateProfile.handler.js","sourceRoot":"","sources":["../../../../src/cli/profile/create/CreateProfile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAIH,iGAA0F;AAC1F,MAAqB,oBAAqB,SAAQ,sCAA4B;
|
|
1
|
+
{"version":3,"file":"CreateProfile.handler.js","sourceRoot":"","sources":["../../../../src/cli/profile/create/CreateProfile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAIH,iGAA0F;AAC1F,MAAqB,oBAAqB,SAAQ,sCAA4B;IAE/D,UAAU;QAEjB,MAAM,oBAAoB,GAA0B;YAChD,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO;YAC/B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;SAC7C,CAAC;QAEF,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QACtF,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACpF,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1E,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC9E,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,OA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,CAAE,UAAU,CAAC;oBACV,oBAAoB,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;oBACxD,MAAM;gBACd,KAAK,CAAE,UAAU,CAAC;oBACV,oBAAoB,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;oBACxD,MAAM;gBACd,KAAK,CAAE,UAAU,CAAC;oBACV,oBAAoB,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;oBACxD,MAAM;gBACd,KAAK,CAAE,SAAS,CAAC;oBACT,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACjE,MAAM;gBACd,KAAK,CAAE,SAAS,CAAC;oBACT,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACjE,MAAM;gBACd,KAAK,CAAE,UAAU,CAAC;oBACV,oBAAoB,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;oBACxD,MAAM;gBAEd;oBACG,MAAM;aACR;YACD,OAAO,oBAAoB,CAAC;SAC/B;IACJ,CAAC;CACL;AAhKD,uCAgKC"}
|
|
@@ -23,20 +23,21 @@
|
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.InvokeDefinition = void 0;
|
|
26
|
+
const invkmsg = "Invoke the PROFILE1 monitor profile to measure job JOB1 that runs on the AA31 system ";
|
|
26
27
|
exports.InvokeDefinition = {
|
|
27
28
|
name: "invoke",
|
|
28
29
|
aliases: ["ivk"],
|
|
29
|
-
summary: "Invoke a
|
|
30
|
-
description: "Invoke a
|
|
30
|
+
summary: "Invoke a MAT monitor profile",
|
|
31
|
+
description: "Invoke a MAT monitor profile to start measurement.",
|
|
31
32
|
handler: __dirname + "/InvokeProfile.handler",
|
|
32
33
|
type: "command",
|
|
33
34
|
profile: {
|
|
34
|
-
|
|
35
|
+
optional: ["mat"]
|
|
35
36
|
},
|
|
36
37
|
options: [
|
|
37
38
|
{
|
|
38
39
|
name: "profile",
|
|
39
|
-
description: "Specifies the name of the profile in
|
|
40
|
+
description: "Specifies the name of the profile in MAT that you invoke (e.g. PROFILE1). " +
|
|
40
41
|
"Values: 1 to 8 characters, a combination of alphanumeric and national " +
|
|
41
42
|
"characters (A-Z, 0-9, and @), the first character must be an alphabetic or @. " +
|
|
42
43
|
"The profile name must not contain characters # and $.",
|
|
@@ -53,9 +54,9 @@ exports.InvokeDefinition = {
|
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
name: "mondsn",
|
|
56
|
-
description: "Specifies the monitor data set name where
|
|
57
|
+
description: "Specifies the monitor data set name where MAT saves the measurement (e.g. DEMO.MAT.MONITOR). " +
|
|
57
58
|
"Values: data set name pattern, maximum 46 characters. " +
|
|
58
|
-
"If not specified, your default
|
|
59
|
+
"If not specified, your default MAT monitor DSN pattern is applied.",
|
|
59
60
|
type: "string",
|
|
60
61
|
required: false
|
|
61
62
|
},
|
|
@@ -85,10 +86,10 @@ exports.InvokeDefinition = {
|
|
|
85
86
|
{
|
|
86
87
|
name: "listing",
|
|
87
88
|
description: "Activates automated registration of Cobol, C/C++, and Assembler program listings " +
|
|
88
|
-
"through
|
|
89
|
-
"the --listing parameter, the
|
|
89
|
+
"through Endevor® footprints. After completion of the measurement that you invoke with " +
|
|
90
|
+
"the --listing parameter, the MAT Analyze plug-in for Zowe CLI automatically " +
|
|
90
91
|
"retrieves the program listing that is associated with the monitored job and registers the " +
|
|
91
|
-
"listing with
|
|
92
|
+
"listing with MAT. A registered program listing enhances the analysis possibilities of the " +
|
|
92
93
|
"\'codeview histogram\' command the \'codeview histogram\' command and enables you to " +
|
|
93
94
|
"inspect the source code statements that are associated with specific modules and CSECTs.",
|
|
94
95
|
type: "boolean",
|
|
@@ -97,16 +98,16 @@ exports.InvokeDefinition = {
|
|
|
97
98
|
],
|
|
98
99
|
examples: [
|
|
99
100
|
{
|
|
100
|
-
description:
|
|
101
|
+
description: invkmsg,
|
|
101
102
|
options: "--profile PROFILE1 --jobname JOB1 --targsys AA31",
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
|
-
description:
|
|
105
|
+
description: invkmsg +
|
|
105
106
|
"and save the measurement result in the DEMO.MAT.MONITOR.PROFILE1 data set",
|
|
106
107
|
options: "--profile PROFILE1 --jobname JOB1 --targsys AA31 --mondsn DEMO.MAT.MONITOR.PROFILE1",
|
|
107
108
|
},
|
|
108
109
|
{
|
|
109
|
-
description:
|
|
110
|
+
description: invkmsg +
|
|
110
111
|
"and register the program listing",
|
|
111
112
|
options: "--profile PROFILE1 --jobname JOB1 --targsys AA31 --listing",
|
|
112
113
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvokeProfile.definition.js","sourceRoot":"","sources":["../../../../src/cli/profile/invoke/InvokeProfile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;
|
|
1
|
+
{"version":3,"file":"InvokeProfile.definition.js","sourceRoot":"","sources":["../../../../src/cli/profile/invoke/InvokeProfile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,MAAM,OAAO,GAAG,uFAAuF,CAAC;AAC3F,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,oDAAoD;IACjE,OAAO,EAAE,SAAS,GAAG,wBAAwB;IAC7C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4EAA4E;gBACzF,wEAAwE;gB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CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICommandOptionDefinition } from "@zowe/imperative";
|
|
1
|
+
import { ICommandArguments, ICommandOptionDefinition, IHandlerParameters, Session } from "@zowe/imperative";
|
|
2
2
|
/**
|
|
3
3
|
* Utility Methods for the CLI
|
|
4
4
|
* @export
|
|
@@ -22,17 +22,36 @@ export declare class MATSession {
|
|
|
22
22
|
*/
|
|
23
23
|
static MAT_CLI_USERNAME: ICommandOptionDefinition;
|
|
24
24
|
/**
|
|
25
|
-
* Option used in profile creation and commands for protocol for
|
|
25
|
+
* Option used in profile creation and commands for protocol for MAT
|
|
26
26
|
*/
|
|
27
27
|
static MAT_CLI_PASSWORD: ICommandOptionDefinition;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Option used in profile creation and commands for basePath setting for connecting to MAT
|
|
30
30
|
*/
|
|
31
|
-
static
|
|
31
|
+
static MAT_CLI_BASE_PATH: ICommandOptionDefinition;
|
|
32
|
+
/**
|
|
33
|
+
* Option used in profile creation and commands for rejectUnauthorized setting for connecting to MAT
|
|
34
|
+
*/
|
|
35
|
+
static MAT_CLI_REJECT_UNAUTHORIZED: ICommandOptionDefinition;
|
|
32
36
|
static MAT_CLI_LISTINGDIR: ICommandOptionDefinition;
|
|
33
37
|
/**
|
|
34
|
-
* Options related to connecting to
|
|
38
|
+
* Options related to connecting to MAT
|
|
35
39
|
* These options can be filled in if the user creates a profile
|
|
36
40
|
*/
|
|
37
41
|
static PMA_CONNECTION_OPTIONS: ICommandOptionDefinition[];
|
|
42
|
+
/**
|
|
43
|
+
* Given command line arguments, create a REST Client Session.
|
|
44
|
+
* @static
|
|
45
|
+
* @param {IProfile} args - The arguments specified by the user
|
|
46
|
+
* @returns {Session} - A session for usage in the CMCI REST Client
|
|
47
|
+
*/
|
|
48
|
+
static createBasicMatSessionFromArguments(args: ICommandArguments): Session;
|
|
49
|
+
/**
|
|
50
|
+
* Given command handler parameters, create a REST Client Session.
|
|
51
|
+
* @static
|
|
52
|
+
* @param {IHandlerParameters} params - Command parameters sent by imperative.
|
|
53
|
+
* @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true)
|
|
54
|
+
* @returns {Session} - A session for usage in the CMCI REST Client
|
|
55
|
+
*/
|
|
56
|
+
static createSessCfgForHandler(params: IHandlerParameters, doPrompting?: boolean): Promise<Session>;
|
|
38
57
|
}
|
|
@@ -21,13 +21,68 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
24
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
34
|
exports.MATSession = void 0;
|
|
35
|
+
// import { ICommandArguments, ICommandOptionDefinition, IProfile, Logger, Session } from "@zowe/imperative";
|
|
36
|
+
const imperative_1 = require("@zowe/imperative");
|
|
26
37
|
/**
|
|
27
38
|
* Utility Methods for the CLI
|
|
28
39
|
* @export
|
|
29
40
|
*/
|
|
30
41
|
class MATSession {
|
|
42
|
+
/**
|
|
43
|
+
* Given command line arguments, create a REST Client Session.
|
|
44
|
+
* @static
|
|
45
|
+
* @param {IProfile} args - The arguments specified by the user
|
|
46
|
+
* @returns {Session} - A session for usage in the CMCI REST Client
|
|
47
|
+
*/
|
|
48
|
+
static createBasicMatSessionFromArguments(args) {
|
|
49
|
+
return new imperative_1.Session({
|
|
50
|
+
type: "basic",
|
|
51
|
+
hostname: args.host,
|
|
52
|
+
port: args.port,
|
|
53
|
+
user: args.user,
|
|
54
|
+
password: args.password,
|
|
55
|
+
basePath: args.basePath,
|
|
56
|
+
rejectUnauthorized: args.rejectUnauthorized,
|
|
57
|
+
protocol: args.protocol || "https",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Given command handler parameters, create a REST Client Session.
|
|
62
|
+
* @static
|
|
63
|
+
* @param {IHandlerParameters} params - Command parameters sent by imperative.
|
|
64
|
+
* @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true)
|
|
65
|
+
* @returns {Session} - A session for usage in the CMCI REST Client
|
|
66
|
+
*/
|
|
67
|
+
static createSessCfgForHandler(params, doPrompting = true) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const sessCfg = {
|
|
70
|
+
hostname: params.arguments.host,
|
|
71
|
+
port: params.arguments.port,
|
|
72
|
+
user: params.arguments.user,
|
|
73
|
+
password: params.arguments.password,
|
|
74
|
+
protocol: params.arguments.protocol || "https",
|
|
75
|
+
basePath: params.arguments.basePath,
|
|
76
|
+
rejectUnauthorized: params.arguments.rejectUnauthorized
|
|
77
|
+
};
|
|
78
|
+
const sessCfgWithCreds = yield imperative_1.ConnectionPropsForSessCfg.addPropsOrPrompt(sessCfg, params.arguments, { doPrompting, parms: params });
|
|
79
|
+
return new imperative_1.Session(sessCfgWithCreds);
|
|
80
|
+
/*
|
|
81
|
+
const sessCfg: ISession = {};
|
|
82
|
+
const sessCfgWithCreds = await ConnectionPropsForSessCfg.addPropsOrPrompt(sessCfg, params.arguments, { doPrompting: true, parms: params });
|
|
83
|
+
return new Session(sessCfgWithCreds);*/
|
|
84
|
+
});
|
|
85
|
+
}
|
|
31
86
|
}
|
|
32
87
|
exports.MATSession = MATSession;
|
|
33
88
|
MATSession.MAT_CONNECTION_OPTION_GROUP = "MAT Profile Options";
|
|
@@ -36,22 +91,23 @@ MATSession.MAT_CONNECTION_OPTION_GROUP = "MAT Profile Options";
|
|
|
36
91
|
*/
|
|
37
92
|
MATSession.MAT_REST_PROTOCOL = {
|
|
38
93
|
name: "protocol",
|
|
39
|
-
aliases: ["
|
|
40
|
-
description: "Specifies the protocol defined for the
|
|
94
|
+
aliases: ["o"],
|
|
95
|
+
description: "Specifies the protocol defined for the MAT REST API server (http or https).",
|
|
41
96
|
type: "string",
|
|
42
|
-
required: true,
|
|
97
|
+
// required: true,
|
|
43
98
|
allowableValues: { values: ["http", "https"] },
|
|
99
|
+
defaultValue: "https",
|
|
44
100
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
45
101
|
};
|
|
46
102
|
/**
|
|
47
103
|
* Defines the hostname option during MAT CLI profile creation.
|
|
48
104
|
*/
|
|
49
105
|
MATSession.MAT_REST_HOSTNAME = {
|
|
50
|
-
name: "
|
|
51
|
-
aliases: ["
|
|
52
|
-
description: "Specifies the hostname or IP address defined for the
|
|
106
|
+
name: "host",
|
|
107
|
+
aliases: ["H"],
|
|
108
|
+
description: "Specifies the hostname or IP address defined for the MAT REST API server (e.g. 127.0.0.0 or localhost).",
|
|
53
109
|
type: "string",
|
|
54
|
-
required: true,
|
|
110
|
+
// required: true,
|
|
55
111
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
56
112
|
};
|
|
57
113
|
/**
|
|
@@ -59,66 +115,75 @@ MATSession.MAT_REST_HOSTNAME = {
|
|
|
59
115
|
*/
|
|
60
116
|
MATSession.MAT_REST_PORT = {
|
|
61
117
|
name: "port",
|
|
62
|
-
aliases: ["
|
|
118
|
+
aliases: ["P"],
|
|
63
119
|
description: "Specifies the server port (e.g. 8080).",
|
|
64
120
|
type: "number",
|
|
65
|
-
required: true,
|
|
121
|
+
// required: true,
|
|
66
122
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
67
123
|
};
|
|
68
124
|
/**
|
|
69
125
|
* Defines the username option during MAT CLI profile creation.
|
|
70
126
|
*/
|
|
71
127
|
MATSession.MAT_CLI_USERNAME = {
|
|
72
|
-
name: "
|
|
73
|
-
aliases: ["
|
|
128
|
+
name: "user",
|
|
129
|
+
aliases: ["u"],
|
|
74
130
|
description: "Your mainframe username.",
|
|
75
131
|
type: "string",
|
|
76
|
-
required: true,
|
|
132
|
+
// required: true,
|
|
77
133
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
78
134
|
};
|
|
79
135
|
/**
|
|
80
|
-
* Option used in profile creation and commands for protocol for
|
|
136
|
+
* Option used in profile creation and commands for protocol for MAT
|
|
81
137
|
*/
|
|
82
138
|
MATSession.MAT_CLI_PASSWORD = {
|
|
83
139
|
name: "password",
|
|
84
|
-
aliases: ["
|
|
140
|
+
aliases: ["pw"],
|
|
85
141
|
description: "Your mainframe password.",
|
|
86
142
|
type: "string",
|
|
87
|
-
required: true,
|
|
143
|
+
// required: true,
|
|
144
|
+
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Option used in profile creation and commands for basePath setting for connecting to MAT
|
|
148
|
+
*/
|
|
149
|
+
MATSession.MAT_CLI_BASE_PATH = {
|
|
150
|
+
name: "base-path",
|
|
151
|
+
aliases: ["bp"],
|
|
152
|
+
description: "The base path for your API mediation layer instance." +
|
|
153
|
+
" Specify this option to prepend the base path to all resources when making REST requests." +
|
|
154
|
+
" Do not specify this option if you are not using an API mediation layer.",
|
|
155
|
+
type: "string",
|
|
88
156
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
89
157
|
};
|
|
90
158
|
/**
|
|
91
|
-
*
|
|
159
|
+
* Option used in profile creation and commands for rejectUnauthorized setting for connecting to MAT
|
|
92
160
|
*/
|
|
93
|
-
MATSession.
|
|
94
|
-
name: "
|
|
95
|
-
aliases: ["
|
|
96
|
-
description: "
|
|
97
|
-
"Set \'--zowediscoverable true\' only if you have configured the Zowe API Mediation Layer properties in your " +
|
|
98
|
-
"CA MAT REST API server settings.",
|
|
161
|
+
MATSession.MAT_CLI_REJECT_UNAUTHORIZED = {
|
|
162
|
+
name: "reject-unauthorized",
|
|
163
|
+
aliases: ["ru"],
|
|
164
|
+
description: "Reject self-signed certificates.",
|
|
99
165
|
type: "boolean",
|
|
100
|
-
|
|
101
|
-
allowableValues: { values: ["false", "true"] },
|
|
166
|
+
defaultValue: true,
|
|
102
167
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
103
168
|
};
|
|
104
169
|
MATSession.MAT_CLI_LISTINGDIR = {
|
|
105
170
|
name: "listingDir",
|
|
106
171
|
aliases: ["ldir"],
|
|
107
172
|
description: "Specifies the directory where you want to store the registered program listings (e.g. \'c:\\listings\') " +
|
|
108
|
-
"for your immediate source code inspection. You can use the advantage of automated listing registration with
|
|
109
|
-
"and listing retrieval through
|
|
110
|
-
"When a source program listing is registered with
|
|
173
|
+
"for your immediate source code inspection. You can use the advantage of automated listing registration with MAT " +
|
|
174
|
+
"and listing retrieval through Endevor® footprints for Cobol, C/C++, and Assembler programs. " +
|
|
175
|
+
"When a source program listing is registered with MAT, you can enhance the histogram analysis " +
|
|
111
176
|
"data with the program listing details that pertain to the specific CSECT and program statement. The listing " +
|
|
112
177
|
"is transfered to the specified directory, which enables you to navigate directly to the line of the source code " +
|
|
113
178
|
"in you VS Code IDE and inspect the program statement. To use the listing retrieval option through " +
|
|
114
|
-
"
|
|
115
|
-
"
|
|
179
|
+
"Endevor® footprints, you need to have the Endevor® Web Services installed and configured and specify the " +
|
|
180
|
+
"Endevor® web server details in the MAT database configuration.",
|
|
116
181
|
type: "string",
|
|
117
182
|
required: false,
|
|
118
183
|
group: MATSession.MAT_CONNECTION_OPTION_GROUP
|
|
119
184
|
};
|
|
120
185
|
/**
|
|
121
|
-
* Options related to connecting to
|
|
186
|
+
* Options related to connecting to MAT
|
|
122
187
|
* These options can be filled in if the user creates a profile
|
|
123
188
|
*/
|
|
124
189
|
MATSession.PMA_CONNECTION_OPTIONS = [
|
|
@@ -127,7 +192,8 @@ MATSession.PMA_CONNECTION_OPTIONS = [
|
|
|
127
192
|
MATSession.MAT_REST_PORT,
|
|
128
193
|
MATSession.MAT_CLI_USERNAME,
|
|
129
194
|
MATSession.MAT_CLI_PASSWORD,
|
|
130
|
-
MATSession.
|
|
195
|
+
MATSession.MAT_CLI_BASE_PATH,
|
|
196
|
+
MATSession.MAT_CLI_REJECT_UNAUTHORIZED,
|
|
131
197
|
MATSession.MAT_CLI_LISTINGDIR
|
|
132
198
|
];
|
|
133
199
|
//# sourceMappingURL=MATSession.js.map
|