@zowe/cli 7.1.2 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config/auto-init/ApimlAutoInitHandler.js +3 -3
- package/lib/config/auto-init/ApimlAutoInitHandler.js.map +1 -1
- package/lib/zosfiles/-strings-/en.d.ts +34 -0
- package/lib/zosfiles/-strings-/en.js +38 -0
- package/lib/zosfiles/-strings-/en.js.map +1 -1
- package/lib/zosfiles/ZosFiles.definition.js +3 -1
- package/lib/zosfiles/ZosFiles.definition.js.map +1 -1
- package/lib/zosfiles/view/View.definition.d.ts +6 -0
- package/lib/zosfiles/view/View.definition.js +33 -0
- package/lib/zosfiles/view/View.definition.js.map +1 -0
- package/lib/zosfiles/view/View.options.d.ts +7 -0
- package/lib/zosfiles/view/View.options.js +62 -0
- package/lib/zosfiles/view/View.options.js.map +1 -0
- package/lib/zosfiles/view/ds/Dataset.definition.d.ts +6 -0
- package/lib/zosfiles/view/ds/Dataset.definition.js +56 -0
- package/lib/zosfiles/view/ds/Dataset.definition.js.map +1 -0
- package/lib/zosfiles/view/ds/Dataset.handler.d.ts +10 -0
- package/lib/zosfiles/view/ds/Dataset.handler.js +54 -0
- package/lib/zosfiles/view/ds/Dataset.handler.js.map +1 -0
- package/lib/zosfiles/view/uss/USSFile.definition.d.ts +6 -0
- package/lib/zosfiles/view/uss/USSFile.definition.js +54 -0
- package/lib/zosfiles/view/uss/USSFile.definition.js.map +1 -0
- package/lib/zosfiles/view/uss/USSFile.handler.d.ts +10 -0
- package/lib/zosfiles/view/uss/USSFile.handler.js +54 -0
- package/lib/zosfiles/view/uss/USSFile.handler.js.map +1 -0
- package/lib/zosjobs/-strings-/en.d.ts +31 -0
- package/lib/zosjobs/-strings-/en.js +41 -3
- package/lib/zosjobs/-strings-/en.js.map +1 -1
- package/lib/zosjobs/delete/Delete.definition.js +3 -1
- package/lib/zosjobs/delete/Delete.definition.js.map +1 -1
- package/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts +2 -0
- package/lib/zosjobs/delete/old-jobs/OldJobs.definition.js +54 -0
- package/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map +1 -0
- package/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts +24 -0
- package/lib/zosjobs/delete/old-jobs/OldJobs.handler.js +92 -0
- package/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map +1 -0
- package/lib/zosjobs/submit/Submit.definition.js +3 -1
- package/lib/zosjobs/submit/Submit.definition.js.map +1 -1
- package/lib/zosjobs/submit/Submit.shared.handler.js +16 -4
- package/lib/zosjobs/submit/Submit.shared.handler.js.map +1 -1
- package/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts +2 -0
- package/lib/zosjobs/submit/uss-file/USSFile.definition.js +80 -0
- package/lib/zosjobs/submit/uss-file/USSFile.definition.js.map +1 -0
- package/lib/zosjobs/view/View.definition.js +2 -0
- package/lib/zosjobs/view/View.definition.js.map +1 -1
- package/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts +2 -0
- package/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js +42 -0
- package/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map +1 -0
- package/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts +17 -0
- package/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js +68 -0
- package/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map +1 -0
- package/npm-shrinkwrap.json +190 -175
- package/package.json +13 -13
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.AllSpoolContentDefinition = void 0;
|
|
14
|
+
exports.AllSpoolContentDefinition = {
|
|
15
|
+
name: "all-spool-content",
|
|
16
|
+
aliases: ["asc"],
|
|
17
|
+
type: "command",
|
|
18
|
+
summary: "View all spool content for a specified job ID",
|
|
19
|
+
description: "View the contents of each spool file from a z/OS job on spool/JES queues. " +
|
|
20
|
+
"The command does not pre-validate the JOBID. " +
|
|
21
|
+
"The command presents errors verbatim from the z/OSMF Jobs REST endpoints.",
|
|
22
|
+
handler: __dirname + "/AllSpoolContent.handler",
|
|
23
|
+
profile: {
|
|
24
|
+
optional: ["zosmf"]
|
|
25
|
+
},
|
|
26
|
+
positionals: [
|
|
27
|
+
{
|
|
28
|
+
name: "jobid",
|
|
29
|
+
description: "The z/OS JOBID of the job containing the spool files you want to view. " +
|
|
30
|
+
"No pre-validation of the JOBID is performed.",
|
|
31
|
+
type: "string",
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
examples: [
|
|
36
|
+
{
|
|
37
|
+
description: "View all spool files for the job with job ID JOB00234",
|
|
38
|
+
options: "JOB00234"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=AllSpoolContent.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllSpoolContent.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/all-spool-content/AllSpoolContent.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,yBAAyB,GAAuB;IACzD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,+CAA+C;IACxD,WAAW,EAAE,4EAA4E;QACzF,+CAA+C;QAC/C,2EAA2E;IAC3E,OAAO,EAAE,SAAS,GAAG,0BAA0B;IAC/C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yEAAyE;gBACtF,8CAA8C;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,UAAU;SACtB;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IHandlerParameters } from "@zowe/imperative";
|
|
2
|
+
import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk";
|
|
3
|
+
/**
|
|
4
|
+
* "zos-jobs view all-spool-content" command handler. Outputs details regarding a z/OS job.
|
|
5
|
+
* @export
|
|
6
|
+
* @class SubmitJobHandler
|
|
7
|
+
* @implements {ICommandHandler}
|
|
8
|
+
*/
|
|
9
|
+
export default class AllSpoolContentHandler extends ZosmfBaseHandler {
|
|
10
|
+
/**
|
|
11
|
+
* Command handler process - invoked by the command processor to handle the "zos-jobs view all-spool-content"
|
|
12
|
+
* @param {IHandlerParameters} params - Command handler parameters
|
|
13
|
+
* @returns {Promise<void>} - Fulfilled when the command completes successfully OR rejected with imperative error
|
|
14
|
+
* @memberof SubmitDataSetHandler
|
|
15
|
+
*/
|
|
16
|
+
processCmd(params: IHandlerParameters): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk");
|
|
23
|
+
const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk");
|
|
24
|
+
/**
|
|
25
|
+
* "zos-jobs view all-spool-content" command handler. Outputs details regarding a z/OS job.
|
|
26
|
+
* @export
|
|
27
|
+
* @class SubmitJobHandler
|
|
28
|
+
* @implements {ICommandHandler}
|
|
29
|
+
*/
|
|
30
|
+
class AllSpoolContentHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler {
|
|
31
|
+
/**
|
|
32
|
+
* Command handler process - invoked by the command processor to handle the "zos-jobs view all-spool-content"
|
|
33
|
+
* @param {IHandlerParameters} params - Command handler parameters
|
|
34
|
+
* @returns {Promise<void>} - Fulfilled when the command completes successfully OR rejected with imperative error
|
|
35
|
+
* @memberof SubmitDataSetHandler
|
|
36
|
+
*/
|
|
37
|
+
processCmd(params) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
// Get the job details
|
|
40
|
+
const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid);
|
|
41
|
+
// Get spool files
|
|
42
|
+
const spoolFiles = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolFilesForJob(this.mSession, job);
|
|
43
|
+
const responseArray = [];
|
|
44
|
+
for (const spoolFile of spoolFiles) {
|
|
45
|
+
const spoolContent = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContent(this.mSession, spoolFile);
|
|
46
|
+
if (spoolFile.procstep != null && spoolFile.procstep.length > 0) {
|
|
47
|
+
this.console.log("Spool file: %s (ID #%d, Step: %s, ProcStep: %s)", spoolFile.ddname, spoolFile.id, spoolFile.stepname, spoolFile.procstep);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.console.log("Spool file: %s (ID #%d, Step: %s)", spoolFile.ddname, spoolFile.id, spoolFile.stepname);
|
|
51
|
+
}
|
|
52
|
+
this.console.log(spoolContent);
|
|
53
|
+
responseArray.push({
|
|
54
|
+
id: spoolFile.id,
|
|
55
|
+
ddName: spoolFile.ddname,
|
|
56
|
+
stepName: spoolFile.stepname,
|
|
57
|
+
procName: spoolFile.procstep,
|
|
58
|
+
data: spoolContent.toString(),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// Return as an object when using --response-format-json
|
|
62
|
+
// This differs from the initial implementation, but we should probably return more then the last spool file.
|
|
63
|
+
this.data.setObj(responseArray);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.default = AllSpoolContentHandler;
|
|
68
|
+
//# sourceMappingURL=AllSpoolContent.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllSpoolContent.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/all-spool-content/AllSpoolContent.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAkF;AAClF,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,sBAAuB,SAAQ,qCAAgB;IAEhE;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sB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