@broadcom/ops-for-zowe-cli 5.0.0-next.202401221923 → 5.0.0-next.202408051627

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.
Files changed (174) hide show
  1. package/README.md +180 -43
  2. package/lib/api/Execute.d.ts +5 -0
  3. package/lib/api/Execute.js +138 -0
  4. package/lib/api/Execute.js.map +1 -0
  5. package/lib/api/OpsProfilesConfig.js +5 -19
  6. package/lib/api/OpsProfilesConfig.js.map +1 -1
  7. package/lib/api/Show.d.ts +8 -1
  8. package/lib/api/Show.js +57 -7
  9. package/lib/api/Show.js.map +1 -1
  10. package/lib/api/Update.js +57 -45
  11. package/lib/api/Update.js.map +1 -1
  12. package/lib/api/constants/Ops.constants.js +17 -8
  13. package/lib/api/constants/Ops.constants.js.map +1 -1
  14. package/lib/api/doc/IExecuteRexxResponse.d.ts +9 -0
  15. package/lib/api/doc/IExecuteRexxResponse.js +34 -0
  16. package/lib/api/doc/IExecuteRexxResponse.js.map +1 -0
  17. package/lib/api/doc/IShowLognameResponse.d.ts +12 -0
  18. package/lib/api/doc/IShowLognameResponse.js +25 -0
  19. package/lib/api/doc/IShowLognameResponse.js.map +1 -0
  20. package/lib/api/doc/IShowStatusResponse.d.ts +13 -0
  21. package/lib/api/doc/IShowStatusResponse.js +25 -0
  22. package/lib/api/doc/IShowStatusResponse.js.map +1 -0
  23. package/lib/api/doc/IShowSubsystemsResponse.d.ts +12 -0
  24. package/lib/api/doc/IShowSubsystemsResponse.js +25 -0
  25. package/lib/api/doc/IShowSubsystemsResponse.js.map +1 -0
  26. package/lib/api/index.d.ts +6 -0
  27. package/lib/api/index.js +6 -0
  28. package/lib/api/index.js.map +1 -1
  29. package/lib/api/utils/LognameListUtils.d.ts +12 -0
  30. package/lib/api/utils/LognameListUtils.js +104 -0
  31. package/lib/api/utils/LognameListUtils.js.map +1 -0
  32. package/lib/api/utils/LognameUtils.d.ts +4 -0
  33. package/lib/api/utils/LognameUtils.js +41 -0
  34. package/lib/api/utils/LognameUtils.js.map +1 -0
  35. package/lib/api/utils/OpsRestClient.js +2 -0
  36. package/lib/api/utils/OpsRestClient.js.map +1 -1
  37. package/lib/api/utils/OpsRestUtils.d.ts +1 -0
  38. package/lib/api/utils/OpsRestUtils.js +18 -6
  39. package/lib/api/utils/OpsRestUtils.js.map +1 -1
  40. package/lib/api/utils/OpsTextUtils.d.ts +1 -1
  41. package/lib/api/utils/OpsTextUtils.js +8 -4
  42. package/lib/api/utils/OpsTextUtils.js.map +1 -1
  43. package/lib/api/utils/RexxListUtils.d.ts +9 -0
  44. package/lib/api/utils/RexxListUtils.js +146 -0
  45. package/lib/api/utils/RexxListUtils.js.map +1 -0
  46. package/lib/api/utils/RexxUtils.d.ts +5 -0
  47. package/lib/api/utils/RexxUtils.js +48 -0
  48. package/lib/api/utils/RexxUtils.js.map +1 -0
  49. package/lib/api/utils/RuleListUtils.d.ts +15 -3
  50. package/lib/api/utils/RuleListUtils.js +173 -21
  51. package/lib/api/utils/RuleListUtils.js.map +1 -1
  52. package/lib/api/utils/RuleUtils.d.ts +1 -3
  53. package/lib/api/utils/RuleUtils.js +21 -39
  54. package/lib/api/utils/RuleUtils.js.map +1 -1
  55. package/lib/api/utils/RulesetListUtils.d.ts +9 -1
  56. package/lib/api/utils/RulesetListUtils.js +102 -4
  57. package/lib/api/utils/RulesetListUtils.js.map +1 -1
  58. package/lib/api/utils/RulesetUtils.d.ts +0 -1
  59. package/lib/api/utils/RulesetUtils.js +6 -10
  60. package/lib/api/utils/RulesetUtils.js.map +1 -1
  61. package/lib/api/utils/SSMResourceListUtils.d.ts +14 -1
  62. package/lib/api/utils/SSMResourceListUtils.js +274 -17
  63. package/lib/api/utils/SSMResourceListUtils.js.map +1 -1
  64. package/lib/api/utils/{SSMUtils.d.ts → SSMResourceUtils.d.ts} +2 -3
  65. package/lib/api/utils/{SSMUtils.js → SSMResourceUtils.js} +39 -66
  66. package/lib/api/utils/SSMResourceUtils.js.map +1 -0
  67. package/lib/api/utils/StatusListUtils.d.ts +9 -0
  68. package/lib/api/utils/StatusListUtils.js +100 -0
  69. package/lib/api/utils/StatusListUtils.js.map +1 -0
  70. package/lib/api/utils/StatusUtils.d.ts +4 -0
  71. package/lib/api/utils/StatusUtils.js +37 -0
  72. package/lib/api/utils/StatusUtils.js.map +1 -0
  73. package/lib/api/utils/SubsystemListUtils.d.ts +12 -0
  74. package/lib/api/utils/SubsystemListUtils.js +104 -0
  75. package/lib/api/utils/SubsystemListUtils.js.map +1 -0
  76. package/lib/api/utils/SubsystemUtils.d.ts +4 -0
  77. package/lib/api/utils/SubsystemUtils.js +37 -0
  78. package/lib/api/utils/SubsystemUtils.js.map +1 -0
  79. package/lib/api/utils/index.d.ts +9 -1
  80. package/lib/api/utils/index.js +9 -1
  81. package/lib/api/utils/index.js.map +1 -1
  82. package/lib/cli/LognameParameterDefinitions.d.ts +4 -0
  83. package/lib/cli/LognameParameterDefinitions.js +40 -0
  84. package/lib/cli/LognameParameterDefinitions.js.map +1 -0
  85. package/lib/cli/OpsBaseHandler.js +4 -2
  86. package/lib/cli/OpsBaseHandler.js.map +1 -1
  87. package/lib/cli/ResourceParameterDefinitions.d.ts +1 -1
  88. package/lib/cli/ResourceParameterDefinitions.js +9 -4
  89. package/lib/cli/ResourceParameterDefinitions.js.map +1 -1
  90. package/lib/cli/RexxParameterDefinitions.d.ts +14 -0
  91. package/lib/cli/RexxParameterDefinitions.js +125 -0
  92. package/lib/cli/RexxParameterDefinitions.js.map +1 -0
  93. package/lib/cli/RuleParameterDefinitions.d.ts +2 -1
  94. package/lib/cli/RuleParameterDefinitions.js +11 -0
  95. package/lib/cli/RuleParameterDefinitions.js.map +1 -1
  96. package/lib/cli/RulesetParameterDefinitions.d.ts +1 -0
  97. package/lib/cli/RulesetParameterDefinitions.js +11 -0
  98. package/lib/cli/RulesetParameterDefinitions.js.map +1 -1
  99. package/lib/cli/StatusParameterDefinitions.d.ts +4 -0
  100. package/lib/cli/StatusParameterDefinitions.js +40 -0
  101. package/lib/cli/StatusParameterDefinitions.js.map +1 -0
  102. package/lib/cli/SubsystemsParameterDefinitions.d.ts +4 -0
  103. package/lib/cli/SubsystemsParameterDefinitions.js +40 -0
  104. package/lib/cli/SubsystemsParameterDefinitions.js.map +1 -0
  105. package/lib/cli/disable/Disable.definition.js +2 -2
  106. package/lib/cli/disable/Disable.definition.js.map +1 -1
  107. package/lib/cli/disable/rule/Rule.definition.js +3 -1
  108. package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
  109. package/lib/cli/disable/rule/Rule.handler.js +1 -1
  110. package/lib/cli/disable/rule/Rule.handler.js.map +1 -1
  111. package/lib/cli/enable/Enable.definition.js +2 -2
  112. package/lib/cli/enable/Enable.definition.js.map +1 -1
  113. package/lib/cli/enable/rule/Rule.handler.js +1 -1
  114. package/lib/cli/enable/rule/Rule.handler.js.map +1 -1
  115. package/lib/cli/execute/Execute.definition.d.ts +3 -0
  116. package/lib/cli/execute/Execute.definition.js +35 -0
  117. package/lib/cli/execute/Execute.definition.js.map +1 -0
  118. package/lib/cli/execute/rexx/Rexx.definition.d.ts +2 -0
  119. package/lib/cli/execute/rexx/Rexx.definition.js +55 -0
  120. package/lib/cli/execute/rexx/Rexx.definition.js.map +1 -0
  121. package/lib/cli/execute/rexx/Rexx.handler.d.ts +5 -0
  122. package/lib/cli/execute/rexx/Rexx.handler.js +46 -0
  123. package/lib/cli/execute/rexx/Rexx.handler.js.map +1 -0
  124. package/lib/cli/show/Show.definition.js +10 -5
  125. package/lib/cli/show/Show.definition.js.map +1 -1
  126. package/lib/cli/show/logname/Logname.definition.d.ts +17 -0
  127. package/lib/cli/show/logname/Logname.definition.js +62 -0
  128. package/lib/cli/show/logname/Logname.definition.js.map +1 -0
  129. package/lib/cli/show/logname/Logname.handler.d.ts +5 -0
  130. package/lib/cli/show/logname/Logname.handler.js +49 -0
  131. package/lib/cli/show/logname/Logname.handler.js.map +1 -0
  132. package/lib/cli/show/resource/Resource.definition.js +3 -1
  133. package/lib/cli/show/resource/Resource.definition.js.map +1 -1
  134. package/lib/cli/show/resource/Resource.handler.js +3 -3
  135. package/lib/cli/show/resource/Resource.handler.js.map +1 -1
  136. package/lib/cli/show/rule/Rule.definition.d.ts +1 -1
  137. package/lib/cli/show/rule/Rule.definition.js +9 -7
  138. package/lib/cli/show/rule/Rule.definition.js.map +1 -1
  139. package/lib/cli/show/rule/Rule.handler.js +5 -5
  140. package/lib/cli/show/rule/Rule.handler.js.map +1 -1
  141. package/lib/cli/show/ruleset/Ruleset.definition.js +1 -0
  142. package/lib/cli/show/ruleset/Ruleset.definition.js.map +1 -1
  143. package/lib/cli/show/ruleset/Ruleset.handler.js +3 -4
  144. package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -1
  145. package/lib/cli/show/status/Status.definition.d.ts +17 -0
  146. package/lib/cli/show/status/Status.definition.js +62 -0
  147. package/lib/cli/show/status/Status.definition.js.map +1 -0
  148. package/lib/cli/show/status/Status.handler.d.ts +5 -0
  149. package/lib/cli/show/status/Status.handler.js +49 -0
  150. package/lib/cli/show/status/Status.handler.js.map +1 -0
  151. package/lib/cli/show/subsystem/Subsystem.definition.d.ts +17 -0
  152. package/lib/cli/show/subsystem/Subsystem.definition.js +62 -0
  153. package/lib/cli/show/subsystem/Subsystem.definition.js.map +1 -0
  154. package/lib/cli/show/subsystem/Subsystem.handler.d.ts +5 -0
  155. package/lib/cli/show/subsystem/Subsystem.handler.js +49 -0
  156. package/lib/cli/show/subsystem/Subsystem.handler.js.map +1 -0
  157. package/lib/cli/start/Start.definition.js +2 -2
  158. package/lib/cli/start/Start.definition.js.map +1 -1
  159. package/lib/cli/start/resource/Resource.handler.js +3 -4
  160. package/lib/cli/start/resource/Resource.handler.js.map +1 -1
  161. package/lib/cli/stop/Stop.definition.js +2 -2
  162. package/lib/cli/stop/Stop.definition.js.map +1 -1
  163. package/lib/cli/stop/resource/Resource.definition.js +1 -1
  164. package/lib/cli/stop/resource/Resource.handler.js +3 -4
  165. package/lib/cli/stop/resource/Resource.handler.js.map +1 -1
  166. package/lib/healthCheck.handler.js +2 -1
  167. package/lib/healthCheck.handler.js.map +1 -1
  168. package/lib/imperative.js +0 -2
  169. package/lib/imperative.js.map +1 -1
  170. package/lib/index.d.ts +5 -1
  171. package/lib/index.js +5 -1
  172. package/lib/index.js.map +1 -1
  173. package/package.json +25 -24
  174. package/lib/api/utils/SSMUtils.js.map +0 -1
@@ -0,0 +1,55 @@
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.RexxDefinition = void 0;
26
+ const RexxParameterDefinitions_1 = require("../../RexxParameterDefinitions");
27
+ exports.RexxDefinition = {
28
+ name: "rexx",
29
+ aliases: [],
30
+ summary: "Execute the specified OPS/MVS REXX program.",
31
+ description: "Execute the specified OPS/MVS REXX program.",
32
+ examples: [
33
+ {
34
+ options: "OPSRULES MYRULE --subsystem OPSS",
35
+ description: "Execute the REXX program MYRULE on the OPSS subsystem."
36
+ }
37
+ ],
38
+ type: "command",
39
+ handler: __dirname + "/Rexx.handler",
40
+ profile: { optional: ["ops"] },
41
+ positionals: [
42
+ RexxParameterDefinitions_1.RexxParameterDefinitions.rexxProgramPositional
43
+ ],
44
+ options: [
45
+ RexxParameterDefinitions_1.RexxParameterDefinitions.argumentOption,
46
+ RexxParameterDefinitions_1.RexxParameterDefinitions.maxQueueOption,
47
+ RexxParameterDefinitions_1.RexxParameterDefinitions.workspaceOption,
48
+ RexxParameterDefinitions_1.RexxParameterDefinitions.timeoutOption,
49
+ RexxParameterDefinitions_1.RexxParameterDefinitions.outputLimitOption,
50
+ RexxParameterDefinitions_1.RexxParameterDefinitions.waitOption,
51
+ RexxParameterDefinitions_1.RexxParameterDefinitions.debugOption,
52
+ RexxParameterDefinitions_1.RexxParameterDefinitions.formatOption
53
+ ]
54
+ };
55
+ //# sourceMappingURL=Rexx.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rexx.definition.js","sourceRoot":"","sources":["../../../../src/cli/execute/rexx/Rexx.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE7D,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,kCAAkC;YAC3C,WAAW,EAAE,wDAAwD;SACxE;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,mDAAwB,CAAC,YAAY;KACxC;CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IHandlerParameters } from "@zowe/imperative";
2
+ import { OpsBaseHandler } from "../../OpsBaseHandler";
3
+ export default class RexxHandler extends OpsBaseHandler {
4
+ processOps(params: IHandlerParameters): Promise<void>;
5
+ }
@@ -0,0 +1,46 @@
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 index_1 = require("../../../index");
35
+ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
+ class RexxHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
+ processOps(params) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const response = yield (0, index_1.executeRexx)(this.session, params.arguments.program, params.arguments.restApi, params.arguments.subsystem, params, params.arguments.arg, params.arguments.maxQueue, params.arguments.workspace, params.arguments.timeout, params.arguments.outputLimit, params.arguments.wait, params.arguments.debug);
40
+ params.response.data.setObj(response);
41
+ params.response.console.log(index_1.RexxListUtils.printExecuteRexxResponse(response, params));
42
+ });
43
+ }
44
+ }
45
+ exports.default = RexxHandler;
46
+ //# sourceMappingURL=Rexx.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rexx.handler.js","sourceRoot":"","sources":["../../../../src/cli/execute/rexx/Rexx.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAA4D;AAC5D,yDAAsD;AAEtD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAC9C,MAAM,QAAQ,GAAG,MAAM,IAAA,mBAAW,EAAC,IAAI,CAAC,OAAO,EAC3C,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,EACtF,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAC3E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,EAC7E,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC5B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAa,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QAC1F,CAAC;KAAA;CACJ;AAXD,8BAWC"}
@@ -21,17 +21,22 @@
21
21
  * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
22
  * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
23
  */
24
+ const Logname_definition_1 = require("./logname/Logname.definition");
24
25
  const Resource_definition_1 = require("./resource/Resource.definition");
25
26
  const Rule_definition_1 = require("./rule/Rule.definition");
26
27
  const Ruleset_definition_1 = require("./ruleset/Ruleset.definition");
27
- const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
28
+ const Status_definition_1 = require("./status/Status.definition");
29
+ const Subsystem_definition_1 = require("./subsystem/Subsystem.definition");
30
+ const api_1 = require("../../api");
28
31
  const ShowDefinition = {
29
32
  name: "show",
30
- summary: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, and SSM resources.",
31
- description: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, and SSM resources.",
33
+ summary: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, and SSM resources, OPS log names," +
34
+ " and subsystems, or REST API server status.",
35
+ description: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, and SSM resources, OPS log names," +
36
+ " and subsystems, or REST API server status.",
32
37
  type: "group",
33
- children: [Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition],
34
- passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
38
+ children: [Logname_definition_1.LognameDefinition, Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition, Status_definition_1.StatusDefinition, Subsystem_definition_1.SubsystemDefinition],
39
+ passOn: api_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
35
40
  };
36
41
  module.exports = ShowDefinition;
37
42
  //# sourceMappingURL=Show.definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,4DAAwD;AACxD,qEAAiE;AACjE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,8GAA8G;IACvH,WAAW,EAAE,8GAA8G;IAC3H,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,EAAE,gCAAc,EAAE,sCAAiB,CAAC;IACjE,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
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,mCAAyC;AAEzC,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,6HAA6H;QAClI,6CAA6C;IACjD,WAAW,EAAE,6HAA6H;QACtI,6CAA6C;IACjD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,sCAAiB,EAAE,wCAAkB,EAAE,gCAAc,EAAE,sCAAiB,EAAE,oCAAgB,EAAE,0CAAmB,CAAC;IAC3H,MAAM,EAAE,kBAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
@@ -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 LognameDefinition: 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.LognameDefinition = void 0;
26
+ const LognameParameterDefinitions_1 = require("../../LognameParameterDefinitions");
27
+ /**
28
+ * Command one [object] defintion. 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.LognameDefinition = {
43
+ name: "logname",
44
+ aliases: [],
45
+ summary: "Display data associated with logs.",
46
+ description: "Display a list of the OPSLOG lognames that are defined to the specified subsystem. The list also identifies the live OPSLOG." +
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 data for the logs defined for the OPSS subsystem"
52
+ }
53
+ ],
54
+ type: "command",
55
+ handler: __dirname + "/Logname.handler",
56
+ profile: { optional: ["ops"] },
57
+ positionals: [],
58
+ options: [
59
+ LognameParameterDefinitions_1.LognameParameterDefinitions.formatOption
60
+ ]
61
+ };
62
+ //# sourceMappingURL=Logname.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logname.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAEhF;;;;;;;;;;;;;;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,kBAAkB;YAC3B,WAAW,EAAE,2DAA2D;SAC3E;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,yDAA2B,CAAC,YAAY;KAC3C;CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IHandlerParameters } from "@zowe/imperative";
2
+ import { OpsBaseHandler } from "../../OpsBaseHandler";
3
+ export default class LognameHandler extends OpsBaseHandler {
4
+ processOps(params: IHandlerParameters): Promise<void>;
5
+ }
@@ -0,0 +1,49 @@
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 LognameHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
+ processOps(params) {
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
+ if (params.arguments.restApi) {
42
+ params.response.data.setObj(response);
43
+ params.response.console.log(api_1.LognameListUtils.printShowLogResponse(response, params));
44
+ }
45
+ });
46
+ }
47
+ }
48
+ exports.default = LognameHandler;
49
+ //# sourceMappingURL=Logname.handler.js.map
@@ -0,0 +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,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxC,+EAA+E;YAC/E,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,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;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
@@ -28,7 +28,8 @@ exports.ResourceDefinition = {
28
28
  name: "resource",
29
29
  aliases: [],
30
30
  summary: "Display data associated with the specified SSM resource.",
31
- description: "Display data associated with the specified SSM resource. Currently, only the current and desired states of the resource are displayed.",
31
+ description: "Display data associated with the specified SSM resource. Currently, " +
32
+ "only the current and desired states of the resource are displayed.",
32
33
  examples: [
33
34
  {
34
35
  options: "RESOURCE1 --table MYTABLE --subsystem OPSS",
@@ -53,6 +54,7 @@ exports.ResourceDefinition = {
53
54
  ],
54
55
  options: [
55
56
  ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
57
+ ResourceParameterDefinitions_1.ResourceParameterDefinitions.formatOption
56
58
  ]
57
59
  };
58
60
  //# sourceMappingURL=Resource.definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,0DAA0D;IACnE,WAAW,EAAE,wIAAwI;IACrJ,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,0GAA0G;SAC1H;QACD;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,mGAAmG;gBAC5G,8EAA8E;SACrF;QACD;YACI,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,4FAA4F;gBACrG,8EAA8E;SACrF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;KACtD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,eAAe;KAC/C;CACJ,CAAC"}
1
+ {"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,0DAA0D;IACnE,WAAW,EAAE,sEAAsE;QAC/E,oEAAoE;IACxE,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,0GAA0G;SAC1H;QACD;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,mGAAmG;gBAC5G,8EAA8E;SACrF;QACD;YACI,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,4FAA4F;gBACrG,8EAA8E;SACrF;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;KACtD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,eAAe;QAC5C,2DAA4B,CAAC,YAAY;KAC5C;CACJ,CAAC"}
@@ -32,13 +32,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  };
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  const OpsBaseHandler_1 = require("../../OpsBaseHandler");
35
- const index_1 = require("../../../index");
35
+ const api_1 = require("../../../api");
36
36
  class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, index_1.showResource)(this.session, params.arguments.resourcename, params.arguments.restApi, params.arguments.tablename, params.arguments.subsystem);
39
+ const response = yield (0, api_1.showResource)(this.session, params.arguments.resourcename, params.arguments.restApi, params.arguments.tablename, params.arguments.subsystem);
40
40
  params.response.data.setObj(response);
41
- index_1.SSMResourceListUtils.printResourceList(response, params);
41
+ params.response.console.log(api_1.SSMResourceListUtils.printShowResourceResponse(response, params));
42
42
  });
43
43
  }
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,yDAAoD;AACpD,0CAAkE;AAElE,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,oBAAY,EAAC,IAAI,CAAC,OAAO,EACjD,MAAM,CAAC,SAAS,CAAC,YAAY,EAC7B,MAAM,CAAC,SAAS,CAAC,OAAO,EACxB,MAAM,CAAC,SAAS,CAAC,SAAS,EAC1B,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YAEhC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,4BAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAbD,kCAaC"}
1
+ {"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,yDAAoD;AACpD,sCAAgE;AAEhE,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAY,EAAC,IAAI,CAAC,OAAO,EACjD,MAAM,CAAC,SAAS,CAAC,YAAY,EAC7B,MAAM,CAAC,SAAS,CAAC,OAAO,EACxB,MAAM,CAAC,SAAS,CAAC,SAAS,EAC1B,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YAEhC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,0BAAoB,CAAC,yBAAyB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QAClG,CAAC;KAAA;CACJ;AAbD,kCAaC"}
@@ -1,6 +1,6 @@
1
1
  import { ICommandDefinition } from "@zowe/imperative";
2
2
  /**
3
- * Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
3
+ * Command one [object] definition. This definition is of imperative type "command" and therefore must have a
4
4
  * command handler (which performs the "work" for this command).
5
5
  *
6
6
  * In this case, "command-with-options" will echo options specified on the command.
@@ -25,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.RuleDefinition = void 0;
26
26
  const RuleParameterDefinitions_1 = require("../../RuleParameterDefinitions");
27
27
  /**
28
- * Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
28
+ * Command one [object] definition. This definition is of imperative type "command" and therefore must have a
29
29
  * command handler (which performs the "work" for this command).
30
30
  *
31
31
  * In this case, "command-with-options" will echo options specified on the command.
@@ -43,20 +43,20 @@ exports.RuleDefinition = {
43
43
  name: "rule",
44
44
  aliases: [],
45
45
  summary: "Display data associated with the specified rule.",
46
- description: "Display data associated with the specified rule. Currently, only rule status is displayed.",
46
+ description: "Display data associated with the specified rule.",
47
47
  examples: [
48
48
  {
49
- options: "OPSRULES MYRULE --subsystem OPSS",
50
- description: "Show the status of the rule MYRULE in the ruleset OPSRULES for the OPSS subsystem"
49
+ options: "OPSRULES MYRULE --subsystem OPSS -f csv",
50
+ description: "Show the data in csv format of the rule MYRULE in the ruleset OPSRULES for the OPSS subsystem"
51
51
  },
52
52
  {
53
53
  options: "OPSRULES * --subsystem OPSS",
54
- description: "Show the status of all rules in ruleset OPSRULES for the OPSS subsystem. " +
54
+ description: "Show the data of all rules in ruleset OPSRULES for the OPSS subsystem. " +
55
55
  "This command is only available when connected to the OPS/MVS REST API server"
56
56
  },
57
57
  {
58
58
  options: "* * --subsystem OPSS",
59
- description: "Show the status of all rules in all rulesets for the OPSS subsystem. " +
59
+ description: "Show the data of all rules in all rulesets for the OPSS subsystem. " +
60
60
  "This command is only available when connected to the OPS/MVS REST API server"
61
61
  }
62
62
  ],
@@ -67,6 +67,8 @@ exports.RuleDefinition = {
67
67
  RuleParameterDefinitions_1.RuleParameterDefinitions.rulesetPositional,
68
68
  RuleParameterDefinitions_1.RuleParameterDefinitions.ruleNamePositional
69
69
  ],
70
- options: []
70
+ options: [
71
+ RuleParameterDefinitions_1.RuleParameterDefinitions.formatOption
72
+ ]
71
73
  };
72
74
  //# sourceMappingURL=Rule.definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kCAAkC;YAC3C,WAAW,EAAE,mFAAmF;SACnG;QACD;YACI,OAAO,EAAE,6BAA6B;YACtC,WAAW,EAAE,2EAA2E;gBACpF,8EAA8E;SACrF;QACD;YACI,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,uEAAuE;gBAChF,8EAA8E;SACrF;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,EACR;CACJ,CAAC"}
1
+ {"version":3,"file":"Rule.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,6EAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,yCAAyC;YAClD,WAAW,EAAE,+FAA+F;SAC/G;QACD;YACI,OAAO,EAAE,6BAA6B;YACtC,WAAW,EAAE,yEAAyE;gBAClF,8EAA8E;SACrF;QACD;YACI,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,qEAAqE;gBAC9E,8EAA8E;SACrF;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,mDAAwB,CAAC,YAAY;KACxC;CACJ,CAAC"}
@@ -31,19 +31,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
31
31
  });
32
32
  };
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
- const RuleListUtils_1 = require("../../../api/utils/RuleListUtils");
35
- const Show_1 = require("../../../api/Show");
34
+ const api_1 = require("../../../api");
36
35
  const OpsBaseHandler_1 = require("../../OpsBaseHandler");
37
36
  class RuleHandler extends OpsBaseHandler_1.OpsBaseHandler {
38
37
  processOps(params) {
39
38
  return __awaiter(this, void 0, void 0, function* () {
40
39
  if ((params.arguments.ruleset === "*") && (params.arguments.rule !== "*")) {
41
- RuleListUtils_1.RuleListUtils.printShowRuleError(params);
40
+ const output = api_1.RuleListUtils.printShowRuleError(params);
41
+ params.response.console.log(output);
42
42
  }
43
43
  else {
44
- const response = yield (0, Show_1.showRule)(this.session, params.arguments.ruleset, params.arguments.rule, params.arguments.restApi, params.arguments.subsystem);
44
+ const response = yield (0, api_1.showRule)(this.session, params.arguments.ruleset, params.arguments.rule, params.arguments.restApi, params.arguments.subsystem);
45
45
  params.response.data.setObj(response);
46
- RuleListUtils_1.RuleListUtils.printShowRuleResponse(response, params);
46
+ params.response.console.log(api_1.RuleListUtils.printShowRuleResponse(response, params));
47
47
  }
48
48
  });
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,oEAAiE;AACjE,4CAA6C;AAC7C,yDAAsD;AAEtD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE;gBACvE,6BAAa,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;aAC5C;iBAAM;gBACH,MAAM,QAAQ,GAAQ,MAAM,IAAA,eAAQ,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EACvE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBACjF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,6BAAa,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aACzD;QACL,CAAC;KAAA;CACJ;AAbD,8BAaC"}
1
+ {"version":3,"file":"Rule.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/rule/Rule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAAuD;AACvD,yDAAsD;AAEtD,MAAqB,WAAY,SAAQ,+BAAc;IAEtC,UAAU,CAAC,MAA0B;;YAE9C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE;gBACvE,MAAM,MAAM,GAAG,mBAAa,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBACxD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;aACvC;iBAAM;gBACH,MAAM,QAAQ,GAAQ,MAAM,IAAA,cAAQ,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EACvE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBACjF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAa,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aACtF;QACL,CAAC;KAAA;CACJ;AAdD,8BAcC"}
@@ -65,6 +65,7 @@ exports.RulesetDefinition = {
65
65
  positionals: [],
66
66
  options: [
67
67
  RulesetParameterDefinitions_1.RulesetParameterDefinitions.rulesetOption,
68
+ RulesetParameterDefinitions_1.RulesetParameterDefinitions.formatOption
68
69
  ]
69
70
  };
70
71
  //# sourceMappingURL=Ruleset.definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ruleset.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mDAAmD;IAC5D,WAAW,EAAE,6EAA6E;QACtF,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+DAA+D;SAC/E;QACD;YACI,OAAO,EAAE,gBAAgB;YACzB,WAAW,EAAE,kEAAkE;SAClF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,sDAAsD;SACtE;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,yDAA2B,CAAC,aAAa;KAC5C;CACJ,CAAC"}
1
+ {"version":3,"file":"Ruleset.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mDAAmD;IAC5D,WAAW,EAAE,6EAA6E;QACtF,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+DAA+D;SAC/E;QACD;YACI,OAAO,EAAE,gBAAgB;YACzB,WAAW,EAAE,kEAAkE;SAClF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,sDAAsD;SACtE;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,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,YAAY;KAC3C;CACJ,CAAC"}
@@ -31,17 +31,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
31
31
  });
32
32
  };
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
- const RulesetListUtils_1 = require("../../../api/utils/RulesetListUtils");
35
- const Show_1 = require("../../../api/Show");
34
+ const api_1 = require("../../../api");
36
35
  const OpsBaseHandler_1 = require("../../OpsBaseHandler");
37
36
  class RulesetHandler extends OpsBaseHandler_1.OpsBaseHandler {
38
37
  processOps(params) {
39
38
  return __awaiter(this, void 0, void 0, function* () {
40
- const response = yield (0, Show_1.showRuleset)(this.session, params.arguments.ruleset, params.arguments.restApi, params.arguments.subsystem, params);
39
+ const response = yield (0, api_1.showRuleset)(this.session, params.arguments.ruleset, params.arguments.restApi, params.arguments.subsystem, params);
41
40
  // No need to process response to 'show ruleset' as not supported with web services
42
41
  if (params.arguments.restApi) {
43
42
  params.response.data.setObj(response);
44
- RulesetListUtils_1.RulesetListUtils.printShowRulesetResponse(response, params);
43
+ params.response.console.log(api_1.RulesetListUtils.printShowRulesetResponse(response, params));
45
44
  }
46
45
  });
47
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0EAAuE;AACvE,4CAAgD;AAChD,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAClE,mFAAmF;YACnF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,mCAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aAC/D;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
1
+ {"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAClE,mFAAmF;YACnF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5F;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
@@ -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 StatusDefinition: 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.StatusDefinition = void 0;
26
+ const StatusParameterDefinitions_1 = require("../../StatusParameterDefinitions");
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.StatusDefinition = {
43
+ name: "status",
44
+ aliases: [],
45
+ summary: "Display data associated with an OPS/MVS REST API server.",
46
+ description: "Display data associated with an OPS/MVS REST API server." +
47
+ " This command is only available when connected to the OPS/MVS REST API server.",
48
+ examples: [
49
+ {
50
+ options: "--format csv",
51
+ description: "Show the data for REST API in CSV format"
52
+ }
53
+ ],
54
+ type: "command",
55
+ handler: __dirname + "/Status.handler",
56
+ profile: { optional: ["ops"] },
57
+ positionals: [],
58
+ options: [
59
+ StatusParameterDefinitions_1.StatusParameterDefinitions.formatOption
60
+ ]
61
+ };
62
+ //# sourceMappingURL=Status.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/status/Status.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,iFAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,0DAA0D;IACnE,WAAW,EAAE,0DAA0D;QACnE,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,cAAc;YACvB,WAAW,EAAE,0CAA0C;SAC1D;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,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,5 @@
1
+ import { IHandlerParameters } from "@zowe/imperative";
2
+ import { OpsBaseHandler } from "../../OpsBaseHandler";
3
+ export default class StatusHandler extends OpsBaseHandler {
4
+ processOps(params: IHandlerParameters): Promise<void>;
5
+ }