@broadcom/ops-for-zowe-cli 5.0.1 → 5.2.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/LICENSE +1 -1
- package/README.md +105 -67
- package/lib/api/Create.d.ts +14 -2
- package/lib/api/Create.js +13 -15
- package/lib/api/Create.js.map +1 -1
- package/lib/api/Execute.d.ts +13 -2
- package/lib/api/Execute.js +22 -108
- package/lib/api/Execute.js.map +1 -1
- package/lib/api/Show.d.ts +66 -7
- package/lib/api/Show.js +80 -62
- package/lib/api/Show.js.map +1 -1
- package/lib/api/Update.d.ts +2 -4
- package/lib/api/Update.js +4 -9
- package/lib/api/Update.js.map +1 -1
- package/lib/api/constants/Ops.constants.js +1 -0
- package/lib/api/constants/Ops.constants.js.map +1 -1
- package/lib/api/doc/IExecuteCommandCommandBody.d.ts +23 -0
- package/lib/{cli/LognameParameterDefinitions.js → api/doc/IExecuteCommandCommandBody.js} +1 -16
- package/lib/api/doc/IExecuteCommandCommandBody.js.map +1 -0
- package/lib/api/doc/IShowLognameResponse.d.ts +2 -2
- package/lib/api/doc/IShowRecordsCommandBody.d.ts +16 -0
- package/lib/api/doc/IShowRecordsCommandBody.js +25 -0
- package/lib/api/doc/IShowRecordsCommandBody.js.map +1 -0
- package/lib/api/doc/IShowRecordsResponse.d.ts +55 -0
- package/lib/api/doc/IShowRecordsResponse.js +25 -0
- package/lib/api/doc/IShowRecordsResponse.js.map +1 -0
- package/lib/api/doc/IShowSubsystemsResponse.d.ts +2 -2
- package/lib/api/doc/IShowTableResponse.d.ts +3 -0
- package/lib/{cli/SubsystemsParameterDefinitions.js → api/doc/IShowTableResponse.js} +1 -16
- package/lib/api/doc/IShowTableResponse.js.map +1 -0
- package/lib/api/doc/index.d.ts +9 -0
- package/lib/api/doc/index.js +48 -0
- package/lib/api/doc/index.js.map +1 -0
- package/lib/api/index.d.ts +1 -8
- package/lib/api/index.js +1 -8
- package/lib/api/index.js.map +1 -1
- package/lib/api/utils/CommandListUtils.js +8 -3
- package/lib/api/utils/CommandListUtils.js.map +1 -1
- package/lib/api/utils/LognameListUtils.js +0 -1
- package/lib/api/utils/LognameListUtils.js.map +1 -1
- package/lib/api/utils/OpsRestClient.js +0 -2
- package/lib/api/utils/OpsRestClient.js.map +1 -1
- package/lib/api/utils/OpsRestUtils.js +3 -3
- package/lib/api/utils/OpsRestUtils.js.map +1 -1
- package/lib/api/utils/OpsTextUtils.js +0 -1
- package/lib/api/utils/OpsTextUtils.js.map +1 -1
- package/lib/api/utils/ParmsListUtils.d.ts +11 -0
- package/lib/api/utils/ParmsListUtils.js +107 -0
- package/lib/api/utils/ParmsListUtils.js.map +1 -0
- package/lib/api/utils/ParmsUtils.d.ts +4 -0
- package/lib/api/utils/ParmsUtils.js +41 -0
- package/lib/api/utils/ParmsUtils.js.map +1 -0
- package/lib/api/utils/RecordsListUtils.d.ts +53 -0
- package/lib/api/utils/RecordsListUtils.js +146 -0
- package/lib/api/utils/RecordsListUtils.js.map +1 -0
- package/lib/api/utils/RecordsUtils.d.ts +5 -0
- package/lib/api/utils/RecordsUtils.js +45 -0
- package/lib/api/utils/RecordsUtils.js.map +1 -0
- package/lib/api/utils/RexxListUtils.js +7 -6
- package/lib/api/utils/RexxListUtils.js.map +1 -1
- package/lib/api/utils/RuleUtils.js +2 -2
- package/lib/api/utils/RuleUtils.js.map +1 -1
- package/lib/api/utils/RulesetListUtils.js +0 -1
- package/lib/api/utils/RulesetListUtils.js.map +1 -1
- package/lib/api/utils/RulesetUtils.d.ts +1 -1
- package/lib/api/utils/RulesetUtils.js +1 -1
- package/lib/api/utils/RulesetUtils.js.map +1 -1
- package/lib/api/utils/SubsystemListUtils.js +0 -1
- package/lib/api/utils/SubsystemListUtils.js.map +1 -1
- package/lib/api/utils/TableUtils.d.ts +4 -1
- package/lib/api/utils/TableUtils.js +7 -7
- package/lib/api/utils/TableUtils.js.map +1 -1
- package/lib/api/utils/index.d.ts +5 -0
- package/lib/api/utils/index.js +5 -0
- package/lib/api/utils/index.js.map +1 -1
- package/lib/cli/CommandParameterDefinitions.d.ts +0 -1
- package/lib/cli/CommandParameterDefinitions.js +0 -11
- package/lib/cli/CommandParameterDefinitions.js.map +1 -1
- package/lib/cli/{StatusParameterDefinitions.d.ts → FormatParameterDefinitions.d.ts} +1 -1
- package/lib/cli/{StatusParameterDefinitions.js → FormatParameterDefinitions.js} +5 -5
- package/lib/cli/{StatusParameterDefinitions.js.map → FormatParameterDefinitions.js.map} +1 -1
- package/lib/cli/OpsBaseHandler.js +0 -2
- package/lib/cli/OpsBaseHandler.js.map +1 -1
- package/lib/cli/RecordsParameterDefinitions.d.ts +18 -0
- package/lib/cli/RecordsParameterDefinitions.js +157 -0
- package/lib/cli/RecordsParameterDefinitions.js.map +1 -0
- package/lib/cli/ResourceParameterDefinitions.d.ts +0 -1
- package/lib/cli/ResourceParameterDefinitions.js +0 -11
- package/lib/cli/ResourceParameterDefinitions.js.map +1 -1
- package/lib/cli/RexxParameterDefinitions.d.ts +0 -1
- package/lib/cli/RexxParameterDefinitions.js +0 -11
- package/lib/cli/RexxParameterDefinitions.js.map +1 -1
- package/lib/cli/RuleParameterDefinitions.d.ts +1 -2
- package/lib/cli/RuleParameterDefinitions.js +0 -11
- package/lib/cli/RuleParameterDefinitions.js.map +1 -1
- package/lib/cli/RulesetParameterDefinitions.d.ts +0 -1
- package/lib/cli/RulesetParameterDefinitions.js +0 -11
- package/lib/cli/RulesetParameterDefinitions.js.map +1 -1
- package/lib/cli/TableParameterDefinitions.d.ts +0 -1
- package/lib/cli/TableParameterDefinitions.js +0 -11
- package/lib/cli/TableParameterDefinitions.js.map +1 -1
- package/lib/cli/create/event/Event.handler.js +12 -2
- package/lib/cli/create/event/Event.handler.js.map +1 -1
- package/lib/cli/disable/rule/Rule.definition.js +2 -1
- package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/execute/command/Command.definition.js +2 -1
- package/lib/cli/execute/command/Command.definition.js.map +1 -1
- package/lib/cli/execute/command/Command.handler.js +50 -5
- package/lib/cli/execute/command/Command.handler.js.map +1 -1
- package/lib/cli/execute/rexx/Rexx.definition.js +2 -1
- package/lib/cli/execute/rexx/Rexx.definition.js.map +1 -1
- package/lib/cli/show/Show.definition.js +10 -5
- package/lib/cli/show/Show.definition.js.map +1 -1
- package/lib/cli/show/logname/Logname.definition.js +2 -2
- package/lib/cli/show/logname/Logname.definition.js.map +1 -1
- package/lib/cli/show/logname/Logname.handler.js +4 -2
- package/lib/cli/show/logname/Logname.handler.js.map +1 -1
- package/lib/cli/show/parms/Parms.definition.d.ts +17 -0
- package/lib/cli/show/parms/Parms.definition.js +62 -0
- package/lib/cli/show/parms/Parms.definition.js.map +1 -0
- package/lib/cli/show/parms/Parms.handler.d.ts +5 -0
- package/lib/cli/show/parms/Parms.handler.js +51 -0
- package/lib/cli/show/parms/Parms.handler.js.map +1 -0
- package/lib/cli/show/records/Records.definition.d.ts +17 -0
- package/lib/cli/show/records/Records.definition.js +82 -0
- package/lib/cli/show/records/Records.definition.js.map +1 -0
- package/lib/cli/show/records/Records.handler.d.ts +5 -0
- package/lib/cli/show/records/Records.handler.js +67 -0
- package/lib/cli/show/records/Records.handler.js.map +1 -0
- package/lib/cli/show/resource/Resource.definition.js +2 -1
- package/lib/cli/show/resource/Resource.definition.js.map +1 -1
- package/lib/cli/show/rule/Rule.definition.js +2 -1
- package/lib/cli/show/rule/Rule.definition.js.map +1 -1
- package/lib/cli/show/ruleset/Ruleset.definition.js +2 -1
- package/lib/cli/show/ruleset/Ruleset.definition.js.map +1 -1
- package/lib/cli/show/ruleset/Ruleset.handler.js +8 -2
- package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -1
- package/lib/cli/show/status/Status.definition.js +2 -2
- package/lib/cli/show/status/Status.handler.js +4 -2
- package/lib/cli/show/status/Status.handler.js.map +1 -1
- package/lib/cli/show/subsystem/Subsystem.definition.js +2 -2
- package/lib/cli/show/subsystem/Subsystem.definition.js.map +1 -1
- package/lib/cli/show/subsystem/Subsystem.handler.js +4 -2
- package/lib/cli/show/subsystem/Subsystem.handler.js.map +1 -1
- package/lib/cli/show/table/Table.definition.js +2 -1
- package/lib/cli/show/table/Table.definition.js.map +1 -1
- package/lib/cli/show/table/Table.handler.js +8 -2
- package/lib/cli/show/table/Table.handler.js.map +1 -1
- package/lib/healthCheck.handler.js +0 -1
- package/lib/healthCheck.handler.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
- package/imgs/zowe-conformant-v1.png +0 -0
- package/imgs/zowe-conformant-zowev2-cli-color.png +0 -0
- package/imgs/zowe-conformant-zowev3-cli-color.png +0 -0
- package/lib/cli/LognameParameterDefinitions.d.ts +0 -4
- package/lib/cli/LognameParameterDefinitions.js.map +0 -1
- package/lib/cli/SubsystemsParameterDefinitions.d.ts +0 -4
- package/lib/cli/SubsystemsParameterDefinitions.js.map +0 -1
|
@@ -42,15 +42,4 @@ RuleParameterDefinitions.ruleNamePositional = {
|
|
|
42
42
|
required: true,
|
|
43
43
|
stringLengthRange: [1, RuleParameterDefinitions.RULENAME_MAX_LEN]
|
|
44
44
|
};
|
|
45
|
-
RuleParameterDefinitions.formatOption = {
|
|
46
|
-
name: "format", aliases: ["f"],
|
|
47
|
-
type: "string",
|
|
48
|
-
description: "Format of the displayed output.",
|
|
49
|
-
defaultValue: "namevalue",
|
|
50
|
-
allowableValues: {
|
|
51
|
-
values: ["namevalue", "namevaluecolor", "csv", "json"],
|
|
52
|
-
caseSensitive: false,
|
|
53
|
-
},
|
|
54
|
-
required: false,
|
|
55
|
-
};
|
|
56
45
|
//# sourceMappingURL=RuleParameterDefinitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RuleParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,wBAAwB;;AAArC,
|
|
1
|
+
{"version":3,"file":"RuleParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RuleParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,wBAAwB;;AAArC,4DAoBC;AAlB0B,wCAAe,GAAG,CAAC,CAAC;AACpB,yCAAgB,GAAG,CAAC,CAAC;AAE9B,0CAAiB,GAAiC;IAC5D,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,IAAI;IACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,wBAAwB,CAAC,eAAe,CAAC;CACnE,CAAC;AAEY,2CAAkB,GAAiC;IAC7D,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uBAAuB;IACpC,QAAQ,EAAE,IAAI;IACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,CAAC;CACpE,CAAC"}
|
|
@@ -34,15 +34,4 @@ RulesetParameterDefinitions.rulesetOption = {
|
|
|
34
34
|
required: false,
|
|
35
35
|
stringLengthRange: [1, RulesetParameterDefinitions.RULESET_MAX_LEN]
|
|
36
36
|
};
|
|
37
|
-
RulesetParameterDefinitions.formatOption = {
|
|
38
|
-
name: "format", aliases: ["f"],
|
|
39
|
-
type: "string",
|
|
40
|
-
description: "Format of the displayed output.",
|
|
41
|
-
defaultValue: "namevalue",
|
|
42
|
-
allowableValues: {
|
|
43
|
-
values: ["namevalue", "namevaluecolor", "csv", "json"],
|
|
44
|
-
caseSensitive: false,
|
|
45
|
-
},
|
|
46
|
-
required: false,
|
|
47
|
-
};
|
|
48
37
|
//# sourceMappingURL=RulesetParameterDefinitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesetParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RulesetParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,2BAA2B;;AAAxC,
|
|
1
|
+
{"version":3,"file":"RulesetParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RulesetParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,2BAA2B;;AAAxC,kEAWC;AAT0B,2CAAe,GAAG,CAAC,CAAC;AAE7B,yCAAa,GAA6B;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,KAAK;IACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,2BAA2B,CAAC,eAAe,CAAC;CACtE,CAAC"}
|
|
@@ -38,15 +38,4 @@ TableParameterDefinitions.tableNameOption = {
|
|
|
38
38
|
aliases: ["table"],
|
|
39
39
|
stringLengthRange: [1, TableParameterDefinitions.TABLE_NAME_MAX_LEN]
|
|
40
40
|
};
|
|
41
|
-
TableParameterDefinitions.formatOption = {
|
|
42
|
-
name: "format", aliases: ["f"],
|
|
43
|
-
type: "string",
|
|
44
|
-
description: "Format of the displayed output.",
|
|
45
|
-
defaultValue: "namevalue",
|
|
46
|
-
allowableValues: {
|
|
47
|
-
values: ["namevalue", "namevaluecolor", "csv", "json"],
|
|
48
|
-
caseSensitive: false,
|
|
49
|
-
},
|
|
50
|
-
required: false,
|
|
51
|
-
};
|
|
52
41
|
//# sourceMappingURL=TableParameterDefinitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/TableParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,yBAAyB;;AAAtC,
|
|
1
|
+
{"version":3,"file":"TableParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/TableParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,MAAa,yBAAyB;;AAAtC,8DAeC;AAb0B,4CAAkB,GAAG,EAAE,CAAC;AAEjC,yCAAe,GAA6B;IACtD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iGAAiG;QAC1G,8FAA8F;QAC9F,yGAAyG;QACzG,sDAAsD;IAC1D,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,CAAC,EAAE,yBAAyB,CAAC,kBAAkB,CAAC;CACvE,CAAC"}
|
|
@@ -36,8 +36,18 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
36
36
|
class EventHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
37
|
processOps(params) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const body = {
|
|
40
|
+
eventCode: params.arguments.eventCode,
|
|
41
|
+
eventText: params.arguments.eventText,
|
|
42
|
+
subSystem: params.arguments.subsystem,
|
|
43
|
+
};
|
|
44
|
+
if (!params.arguments.restApi) {
|
|
45
|
+
params.response.console.log("Command 'create event' is only supported with the OPS/MVS REST API server");
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
yield (0, index_1.createEvent)(this.session, body);
|
|
49
|
+
params.response.console.log(index_1.EventListUtils.printCreateEventResponse(params.arguments.eventCode, params.arguments.eventText, params));
|
|
50
|
+
}
|
|
41
51
|
});
|
|
42
52
|
}
|
|
43
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.handler.js","sourceRoot":"","sources":["../../../../src/cli/create/event/Event.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAA2D;AAC3D,yDAAoD;AAEpD,MAAqB,YAAa,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"Event.handler.js","sourceRoot":"","sources":["../../../../src/cli/create/event/Event.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAA2D;AAC3D,yDAAoD;AAEpD,MAAqB,YAAa,SAAQ,+BAAc;IACvC,UAAU,CAAC,MAA0B;;YAC9C,MAAM,IAAI,GAAG;gBACT,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;gBACrC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;gBACrC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;aACxC,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAC;aAC5G;iBAAM;gBACH,MAAM,IAAA,mBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAc,CAAC,wBAAwB,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;aACxI;QACL,CAAC;KAAA;CACJ;AAdD,+BAcC"}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.RuleDefinition = void 0;
|
|
26
26
|
const RuleParameterDefinitions_1 = require("../../RuleParameterDefinitions");
|
|
27
|
+
const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
|
|
27
28
|
exports.RuleDefinition = {
|
|
28
29
|
name: "rule",
|
|
29
30
|
aliases: [],
|
|
@@ -43,7 +44,7 @@ exports.RuleDefinition = {
|
|
|
43
44
|
RuleParameterDefinitions_1.RuleParameterDefinitions.ruleNamePositional
|
|
44
45
|
],
|
|
45
46
|
options: [
|
|
46
|
-
|
|
47
|
+
FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption,
|
|
47
48
|
]
|
|
48
49
|
};
|
|
49
50
|
//# sourceMappingURL=Rule.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/disable/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;
|
|
1
|
+
{"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/disable/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAC1E,iFAA8E;AAEjE,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,8CAA8C;YACvD,WAAW,EAAE,qFAAqF;SACrG;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,mDAAwB,CAAC,iBAAiB;QAC1C,mDAAwB,CAAC,kBAAkB;KAC9C;IACD,OAAO,EAAE;QACL,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.CommandDefinition = void 0;
|
|
26
26
|
const CommandParameterDefinitions_1 = require("../../CommandParameterDefinitions");
|
|
27
|
+
const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
|
|
27
28
|
exports.CommandDefinition = {
|
|
28
29
|
name: "command",
|
|
29
30
|
aliases: [],
|
|
@@ -63,7 +64,7 @@ exports.CommandDefinition = {
|
|
|
63
64
|
CommandParameterDefinitions_1.CommandParameterDefinitions.stopRespOption,
|
|
64
65
|
CommandParameterDefinitions_1.CommandParameterDefinitions.waitOption,
|
|
65
66
|
CommandParameterDefinitions_1.CommandParameterDefinitions.debugOption,
|
|
66
|
-
|
|
67
|
+
FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption
|
|
67
68
|
]
|
|
68
69
|
};
|
|
69
70
|
//# sourceMappingURL=Command.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.definition.js","sourceRoot":"","sources":["../../../../src/cli/execute/command/Command.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;
|
|
1
|
+
{"version":3,"file":"Command.definition.js","sourceRoot":"","sources":["../../../../src/cli/execute/command/Command.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAChF,iFAA8E;AAEjE,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,yCAAyC;IAClD,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,oEAAoE;SACpF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,yDAA2B,CAAC,wBAAwB;KACvD;IACD,OAAO,EAAE;QACL,yDAA2B,CAAC,eAAe;QAC3C,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,YAAY;QACxC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,WAAW;QACvC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,eAAe;QAC3C,yDAA2B,CAAC,SAAS;QACrC,yDAA2B,CAAC,eAAe;QAC3C,yDAA2B,CAAC,YAAY;QACxC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,WAAW;QACvC,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
|
|
@@ -36,12 +36,57 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
36
36
|
class CommandHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
37
|
processOps(params) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const subSystem = params.arguments.subSystem;
|
|
40
|
+
const wait = params.arguments.wait;
|
|
41
|
+
const body = {
|
|
42
|
+
command: params.arguments.command,
|
|
43
|
+
bmpCmdOut: params.arguments.bmpCmdOut,
|
|
44
|
+
capture: params.arguments.capture,
|
|
45
|
+
cart: params.arguments.cart,
|
|
46
|
+
cmdEcho: params.arguments.cmdEcho,
|
|
47
|
+
cmdLog: params.arguments.cmdLog,
|
|
48
|
+
cmdWait: params.arguments.cmdWait,
|
|
49
|
+
conName: params.arguments.conName,
|
|
50
|
+
conType: params.arguments.conType,
|
|
51
|
+
imsId: params.arguments.imsId,
|
|
52
|
+
imsPlex: params.arguments.imsPlex,
|
|
53
|
+
imsReply: params.arguments.imsReply,
|
|
54
|
+
interval: params.arguments.interval,
|
|
55
|
+
localOnly: params.arguments.localOnly,
|
|
56
|
+
log: params.arguments.log,
|
|
57
|
+
maxCmdOut: params.arguments.maxCmdOut,
|
|
58
|
+
output: params.arguments.output,
|
|
59
|
+
stopEnd: params.arguments.stopEnd,
|
|
60
|
+
stopMsg: params.arguments.stopMsg,
|
|
61
|
+
stopResp: params.arguments.stopResp,
|
|
62
|
+
debug: params.arguments.debug,
|
|
63
|
+
};
|
|
64
|
+
let badParms = false;
|
|
65
|
+
if (!params.arguments.restApi) {
|
|
66
|
+
badParms = true;
|
|
67
|
+
params.response.console.log("Command 'execute command' is only supported with the OPS/MVS REST API server");
|
|
68
|
+
}
|
|
69
|
+
if (body.cmdWait && wait) {
|
|
70
|
+
badParms = true;
|
|
71
|
+
params.response.console.log("Parameters 'cmdWait' and 'wait' are mutually exclusive.");
|
|
72
|
+
}
|
|
73
|
+
if (body.output === "NO" && wait) {
|
|
74
|
+
badParms = true;
|
|
75
|
+
params.response.console.log(`Parameters 'output = "NO"' and 'wait' = ${wait} are mutually exclusive.`);
|
|
76
|
+
}
|
|
77
|
+
if (body.conType && body.conName) {
|
|
78
|
+
badParms = true;
|
|
79
|
+
params.response.console.log("Parameters 'conType' and 'conName' are mutually exclusive.");
|
|
80
|
+
}
|
|
81
|
+
if (body.stopMsg && body.stopResp) {
|
|
82
|
+
badParms = true;
|
|
83
|
+
params.response.console.log("Parameters 'stopMsg' and 'stopResp' are mutually exclusive.");
|
|
84
|
+
}
|
|
85
|
+
if (!badParms) {
|
|
86
|
+
const response = yield (0, index_1.executeCommand)(this.session, body, subSystem, wait);
|
|
87
|
+
params.response.data.setObj(response);
|
|
88
|
+
params.response.console.log(index_1.CommandListUtils.printExecuteCommandResponse(response, params));
|
|
42
89
|
}
|
|
43
|
-
params.response.data.setObj(response);
|
|
44
|
-
params.response.console.log(index_1.CommandListUtils.printExecuteCommandResponse(response, params));
|
|
45
90
|
});
|
|
46
91
|
}
|
|
47
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/cli/execute/command/Command.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAAkE;AAClE,yDAAsD;
|
|
1
|
+
{"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/cli/execute/command/Command.handler.ts"],"names":[],"mappings":"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"}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.RexxDefinition = void 0;
|
|
26
26
|
const RexxParameterDefinitions_1 = require("../../RexxParameterDefinitions");
|
|
27
|
+
const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
|
|
27
28
|
exports.RexxDefinition = {
|
|
28
29
|
name: "rexx",
|
|
29
30
|
aliases: [],
|
|
@@ -53,7 +54,7 @@ exports.RexxDefinition = {
|
|
|
53
54
|
RexxParameterDefinitions_1.RexxParameterDefinitions.outputLimitOption,
|
|
54
55
|
RexxParameterDefinitions_1.RexxParameterDefinitions.waitOption,
|
|
55
56
|
RexxParameterDefinitions_1.RexxParameterDefinitions.debugOption,
|
|
56
|
-
|
|
57
|
+
FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption
|
|
57
58
|
]
|
|
58
59
|
};
|
|
59
60
|
//# sourceMappingURL=Rexx.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rexx.definition.js","sourceRoot":"","sources":["../../../../src/cli/execute/rexx/Rexx.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;
|
|
1
|
+
{"version":3,"file":"Rexx.definition.js","sourceRoot":"","sources":["../../../../src/cli/execute/rexx/Rexx.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAC1E,iFAA8E;AAEjE,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,6CAA6C;IACtD,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,6FAA6F;SAC7G;QACD;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,uGAAuG;SACvH;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,mDAAwB,CAAC,qBAAqB;KACjD;IACD,OAAO,EAAE;QACL,mDAAwB,CAAC,cAAc;QACvC,mDAAwB,CAAC,cAAc;QACvC,mDAAwB,CAAC,eAAe;QACxC,mDAAwB,CAAC,aAAa;QACtC,mDAAwB,CAAC,iBAAiB;QAC1C,mDAAwB,CAAC,UAAU;QACnC,mDAAwB,CAAC,WAAW;QACpC,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
24
|
const Logname_definition_1 = require("./logname/Logname.definition");
|
|
25
|
+
const Parms_definition_1 = require("./parms/Parms.definition");
|
|
25
26
|
const Resource_definition_1 = require("./resource/Resource.definition");
|
|
26
27
|
const Rule_definition_1 = require("./rule/Rule.definition");
|
|
27
28
|
const Ruleset_definition_1 = require("./ruleset/Ruleset.definition");
|
|
@@ -29,14 +30,18 @@ const Status_definition_1 = require("./status/Status.definition");
|
|
|
29
30
|
const Subsystem_definition_1 = require("./subsystem/Subsystem.definition");
|
|
30
31
|
const Table_definition_1 = require("./table/Table.definition");
|
|
31
32
|
const api_1 = require("../../api");
|
|
33
|
+
const Records_definition_1 = require("./records/Records.definition");
|
|
32
34
|
const ShowDefinition = {
|
|
33
35
|
name: "show",
|
|
34
|
-
summary: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets,
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
summary: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, " +
|
|
37
|
+
"SSM parameters and resources, OPSLOG lognames and records, RDF tables, and OPS/MVS subsystems. Or display the REST API " +
|
|
38
|
+
"server status.",
|
|
39
|
+
description: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, " +
|
|
40
|
+
"SSM parameters and resources, OPSLOG lognames and records, RDF tables, and OPS/MVS subsystems. Or display the REST API " +
|
|
41
|
+
"server status.",
|
|
38
42
|
type: "group",
|
|
39
|
-
children: [Logname_definition_1.LognameDefinition, Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition,
|
|
43
|
+
children: [Logname_definition_1.LognameDefinition, Records_definition_1.RecordDefinition, Parms_definition_1.ParmsDefinition, Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition,
|
|
44
|
+
Status_definition_1.StatusDefinition, Subsystem_definition_1.SubsystemDefinition, Table_definition_1.TableDefinition],
|
|
40
45
|
passOn: api_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
41
46
|
};
|
|
42
47
|
module.exports = ShowDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAiE;AACjE,wEAAoE;AACpE,4DAAwD;AACxD,qEAAiE;AACjE,kEAA8D;AAC9D,2EAAuE;AACvE,+DAA2D;AAC3D,mCAAyC;
|
|
1
|
+
{"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAiE;AACjE,+DAA2D;AAC3D,wEAAoE;AACpE,4DAAwD;AACxD,qEAAiE;AACjE,kEAA8D;AAC9D,2EAAuE;AACvE,+DAA2D;AAC3D,mCAAyC;AACzC,qEAAgE;AAEhE,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,4FAA4F;QACjG,yHAAyH;QACzH,gBAAgB;IACpB,WAAW,EAAE,4FAA4F;QACrG,yHAAyH;QACzH,gBAAgB;IACpB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,sCAAiB,EAAE,qCAAgB,EAAE,kCAAe,EAAE,wCAAkB,EAAE,gCAAc,EAAE,sCAAiB;QAC3G,oCAAgB,EAAE,0CAAmB,EAAE,kCAAe,CAAC;IAClE,MAAM,EAAE,kBAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.LognameDefinition = void 0;
|
|
26
|
-
const
|
|
26
|
+
const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
|
|
27
27
|
/**
|
|
28
28
|
* Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
|
|
29
29
|
* command handler (which performs the "work" for this command).
|
|
@@ -56,7 +56,7 @@ exports.LognameDefinition = {
|
|
|
56
56
|
profile: { optional: ["ops"] },
|
|
57
57
|
positionals: [],
|
|
58
58
|
options: [
|
|
59
|
-
|
|
59
|
+
FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption
|
|
60
60
|
]
|
|
61
61
|
};
|
|
62
62
|
//# sourceMappingURL=Logname.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logname.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,
|
|
1
|
+
{"version":3,"file":"Logname.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,iFAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,8HAA8H;QACvI,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,+DAA+D;SAC/E;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE,EACZ;IACD,OAAO,EAAE;QACL,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
|
|
@@ -36,12 +36,14 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
36
36
|
class LognameHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
37
|
processOps(params) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield (0, api_1.showLogname)(this.session, params.arguments.restApi, params.arguments.subsystem, params);
|
|
40
|
-
// No need to process response to 'show log' as not supported with web services
|
|
41
39
|
if (params.arguments.restApi) {
|
|
40
|
+
const response = yield (0, api_1.showLogname)(this.session, params.arguments.subsystem);
|
|
42
41
|
params.response.data.setObj(response);
|
|
43
42
|
params.response.console.log(api_1.LognameListUtils.printShowLogResponse(response, params));
|
|
44
43
|
}
|
|
44
|
+
else {
|
|
45
|
+
params.response.console.log("Command 'show logname' is only supported with the OPS/MVS REST API server");
|
|
46
|
+
}
|
|
45
47
|
});
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logname.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,
|
|
1
|
+
{"version":3,"file":"Logname.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBAClF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAgB,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aACxF;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACvB,2EAA2E,CAC5E,CAAC;aACP;QACL,CAAC;KAAA;CACJ;AAdD,iCAcC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ICommandDefinition } from "@zowe/imperative";
|
|
2
|
+
/**
|
|
3
|
+
* Command one [object] definition. This definition is of imperative type "command" and therefore must have a
|
|
4
|
+
* command handler (which performs the "work" for this command).
|
|
5
|
+
*
|
|
6
|
+
* In this case, "command-with-options" will echo options specified on the command.
|
|
7
|
+
*
|
|
8
|
+
* Property Summary:
|
|
9
|
+
* =================
|
|
10
|
+
* "name" of the [object]. Should be a noun (e.g. data-set)
|
|
11
|
+
* "aliases" normally contains a shortened form of the command
|
|
12
|
+
* "summary" will display when issuing the help on this [objects] [action]
|
|
13
|
+
* "type" is "command" which means a handler is required
|
|
14
|
+
* "handler" is the file path to the handler (does the work)
|
|
15
|
+
* "options" an array of options
|
|
16
|
+
*/
|
|
17
|
+
export declare const ParmsDefinition: ICommandDefinition;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ParmsDefinition = void 0;
|
|
26
|
+
const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
|
|
27
|
+
/**
|
|
28
|
+
* Command one [object] definition. This definition is of imperative type "command" and therefore must have a
|
|
29
|
+
* command handler (which performs the "work" for this command).
|
|
30
|
+
*
|
|
31
|
+
* In this case, "command-with-options" will echo options specified on the command.
|
|
32
|
+
*
|
|
33
|
+
* Property Summary:
|
|
34
|
+
* =================
|
|
35
|
+
* "name" of the [object]. Should be a noun (e.g. data-set)
|
|
36
|
+
* "aliases" normally contains a shortened form of the command
|
|
37
|
+
* "summary" will display when issuing the help on this [objects] [action]
|
|
38
|
+
* "type" is "command" which means a handler is required
|
|
39
|
+
* "handler" is the file path to the handler (does the work)
|
|
40
|
+
* "options" an array of options
|
|
41
|
+
*/
|
|
42
|
+
exports.ParmsDefinition = {
|
|
43
|
+
name: "parms",
|
|
44
|
+
aliases: [],
|
|
45
|
+
summary: "Display SSM parameters and their values.",
|
|
46
|
+
description: "Display a list of the SSM parameters that are defined to the specified subsystem." +
|
|
47
|
+
" This command is only available when connected to the OPS/MVS REST API server.",
|
|
48
|
+
examples: [
|
|
49
|
+
{
|
|
50
|
+
options: "--subsystem \"OPSS\"",
|
|
51
|
+
description: "Show the SSM parameters that are defined for the \"OPSS\" subsystem"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
type: "command",
|
|
55
|
+
handler: __dirname + "/Parms.handler",
|
|
56
|
+
profile: { optional: ["ops"] },
|
|
57
|
+
positionals: [],
|
|
58
|
+
options: [
|
|
59
|
+
FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption
|
|
60
|
+
]
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=Parms.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Parms.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/parms/Parms.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,iFAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,0CAA0C;IACnD,WAAW,EAAE,mFAAmF;QAC5F,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,qEAAqE;SACrF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,gBAAgB;IACrC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE,EACZ;IACD,OAAO,EAAE;QACL,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
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
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
const api_1 = require("../../../api");
|
|
35
|
+
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
36
|
+
class ParmsHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
37
|
+
processOps(params) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (params.arguments.restApi) {
|
|
40
|
+
const response = yield (0, api_1.showSSMParms)(this.session, params.arguments.subsystem);
|
|
41
|
+
params.response.data.setObj(response);
|
|
42
|
+
params.response.console.log(api_1.ParmsListUtils.printShowParmsResponse(response, params, params.arguments.subsystem));
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
params.response.console.log("Command 'show parms' is only supported with the OPS/MVS REST API server");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.default = ParmsHandler;
|
|
51
|
+
//# sourceMappingURL=Parms.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Parms.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/parms/Parms.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA4D;AAC5D,yDAAsD;AAEtD,MAAqB,YAAa,SAAQ,+BAAc;IAEvC,UAAU,CAAC,MAA0B;;YAEhD,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxB,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAY,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;aACpH;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACzB,yEAAyE,CAC1E,CAAC;aACH;QACP,CAAC;KAAA;CACJ;AAdD,+BAcC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ICommandDefinition } from "@zowe/imperative";
|
|
2
|
+
/**
|
|
3
|
+
* Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
|
|
4
|
+
* command handler (which performs the "work" for this command).
|
|
5
|
+
*
|
|
6
|
+
* In this case, "command-with-options" will echo options specified on the command.
|
|
7
|
+
*
|
|
8
|
+
* Property Summary:
|
|
9
|
+
* =================
|
|
10
|
+
* "name" of the [object]. Should be a noun (e.g. data-set)
|
|
11
|
+
* "aliases" normally contains a shortened form of the command
|
|
12
|
+
* "summary" will display when issuing the help on this [objects] [action]
|
|
13
|
+
* "type" is "command" which means a handler is required
|
|
14
|
+
* "handler" is the file path to the handler (does the work)
|
|
15
|
+
* "options" an array of options
|
|
16
|
+
*/
|
|
17
|
+
export declare const RecordDefinition: ICommandDefinition;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.RecordDefinition = void 0;
|
|
26
|
+
const RecordsParameterDefinitions_1 = require("../../RecordsParameterDefinitions");
|
|
27
|
+
const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
|
|
28
|
+
/**
|
|
29
|
+
* Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
|
|
30
|
+
* command handler (which performs the "work" for this command).
|
|
31
|
+
*
|
|
32
|
+
* In this case, "command-with-options" will echo options specified on the command.
|
|
33
|
+
*
|
|
34
|
+
* Property Summary:
|
|
35
|
+
* =================
|
|
36
|
+
* "name" of the [object]. Should be a noun (e.g. data-set)
|
|
37
|
+
* "aliases" normally contains a shortened form of the command
|
|
38
|
+
* "summary" will display when issuing the help on this [objects] [action]
|
|
39
|
+
* "type" is "command" which means a handler is required
|
|
40
|
+
* "handler" is the file path to the handler (does the work)
|
|
41
|
+
* "options" an array of options
|
|
42
|
+
*/
|
|
43
|
+
exports.RecordDefinition = {
|
|
44
|
+
name: "records",
|
|
45
|
+
aliases: [],
|
|
46
|
+
summary: "Display a list of opslog records.",
|
|
47
|
+
description: "Display a list of the OPSLOG records with attributes that are defined in the search query from the specified OPSLOG." +
|
|
48
|
+
" This command is only available when connected to the OPS/MVS REST API server.",
|
|
49
|
+
examples: [
|
|
50
|
+
{
|
|
51
|
+
options: "--subsystem OPSS",
|
|
52
|
+
description: "Show up to 100 records for the live OPSLOG for the \"OPSS\" subsystem"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
options: "--subsystem OPSS --logName OPSLOG1 --maxRecords 50 --findString IEF403I --findColumnName MSGID",
|
|
56
|
+
description: "Show up to 50 records matching the message ID IEF403I for OPSLOG1 on the \"OPSS\" subsystem"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
options: "--subs OPSS --log OPSLOG --mr 50 --fs IEF403I --fcn MSGID",
|
|
60
|
+
description: "Show up to 50 records matching the message ID IEF403I for OPSLOG1 on the \"OPSS\" subsystem with shorthand parameters"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
type: "command",
|
|
64
|
+
handler: __dirname + "/Records.handler",
|
|
65
|
+
profile: { optional: ["ops"] },
|
|
66
|
+
options: [
|
|
67
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.logName,
|
|
68
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findString,
|
|
69
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findDirection,
|
|
70
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findColumnName,
|
|
71
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findMaxEvents,
|
|
72
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findRangeStart,
|
|
73
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findRangeEnd,
|
|
74
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.findStringIsPrefix,
|
|
75
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.maxRecords,
|
|
76
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.direction,
|
|
77
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.msgNoStart,
|
|
78
|
+
RecordsParameterDefinitions_1.RecordsParameterDefinitions.utcStartTime,
|
|
79
|
+
FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption
|
|
80
|
+
]
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=Records.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Records.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/records/Records.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,mFAAgF;AAChF,iFAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,sHAAsH;QAC/H,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,uEAAuE;SACvF;QACD;YACI,OAAO,EAAE,gGAAgG;YACzG,WAAW,EAAE,6FAA6F;SAC7G;QACD;YACI,OAAO,EAAE,2DAA2D;YACpE,WAAW,EAAE,uHAAuH;SACvI;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,OAAO,EAAE;QACL,yDAA2B,CAAC,OAAO;QACnC,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,YAAY;QACxC,yDAA2B,CAAC,kBAAkB;QAC9C,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,SAAS;QACrC,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,YAAY;QACxC,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
|